tr_handle * h = vh;
tr_torrent * t;
+ tr_webClose( h->web );
tr_sharedShuttingDown( h->shared );
tr_trackerShuttingDown( h );
#include <errno.h>
#include <stdio.h> /* snprintf */
-#include <miniupnp/miniwget.h>
#include <miniupnp/miniupnpc.h>
#include <miniupnp/upnpcommands.h>
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
- * $Id:$
+ * $Id$
*/
#include <stdlib.h> /* bsearch */
return web;
}
+void
+tr_webClose( tr_web * web )
+{
+ evtimer_del( &web->timer );
+ curl_multi_cleanup( web->cm );
+ tr_free( web );
+}
+
/***
****
***/
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
- * $Id:$
+ * $Id$
*/
#ifndef TR_HTTP_H
tr_web* tr_webInit( tr_handle * session );
+void tr_webClose( tr_web * );
+
typedef void (tr_web_done_func)( tr_handle * session,
long response_code,
const void * response,