Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Sat, 29 Aug 2009 02:37:57 +0000 (19:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 29 Aug 2009 02:37:57 +0000 (19:37 -0700)
* maint:
  http.c: set slot callback members to NULL when releasing object

http.c

diff --git a/http.c b/http.c
index eb0c669..5926c5b 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1289,5 +1289,10 @@ void release_http_object_request(struct http_object_request *freq)
                free(freq->url);
                freq->url = NULL;
        }
-       freq->slot = NULL;
+       if (freq->slot != NULL) {
+               freq->slot->callback_func = NULL;
+               freq->slot->callback_data = NULL;
+               release_active_slot(freq->slot);
+               freq->slot = NULL;
+       }
 }