- fix object leakage when utilizing HttpRequest::onProgress()
authorMichael Wallner <mike@php.net>
Mon, 4 Dec 2006 13:36:04 +0000 (13:36 +0000)
committerMichael Wallner <mike@php.net>
Mon, 4 Dec 2006 13:36:04 +0000 (13:36 +0000)
http_request_object.c

index 3f37f46..af4a2b9 100644 (file)
@@ -732,6 +732,8 @@ STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this
                zval_ptr_dtor(&param);
        }
        
+       http_request_set_progress_callback(obj->request, NULL);
+       
        return ret;
 }