- 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 3f37f46f9ada3d1549d8ccbf474f6ed4985973ba..af4a2b996fd0291e31bda651dcbb6eba685194e0 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;
 }