From 898c08e1d8abde8cc842ae619281b6cf4c1b7fdd Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 25 Nov 2012 11:47:23 +0000 Subject: Clean up streaming HTTP event handler, which should fix crash-bugs with GLib. Forgot to do this so far because my libevent code let me get away with it. --- lib/http_client.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/http_client.c') diff --git a/lib/http_client.c b/lib/http_client.c index 35d8081f..e368c0dc 100644 --- a/lib/http_client.c +++ b/lib/http_client.c @@ -590,6 +590,9 @@ void http_close( struct http_request *req ) if( !req ) return; + if( req->inpa > 0 ) + b_event_remove( req->inpa ); + if( req->ssl ) ssl_disconnect( req->ssl ); else -- cgit v1.2.3