add tr_webClose()

This commit is contained in:
Charles Kerr 2008-04-25 19:46:36 +00:00
parent 3af15497c7
commit 03572a0ad5
4 changed files with 13 additions and 3 deletions

View File

@ -390,6 +390,7 @@ tr_closeImpl( void * vh )
tr_handle * h = vh;
tr_torrent * t;
tr_webClose( h->web );
tr_sharedShuttingDown( h->shared );
tr_trackerShuttingDown( h );

View File

@ -14,7 +14,6 @@
#include <errno.h>
#include <stdio.h> /* snprintf */
#include <miniupnp/miniwget.h>
#include <miniupnp/miniupnpc.h>
#include <miniupnp/upnpcommands.h>

View File

@ -7,7 +7,7 @@
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:$
* $Id$
*/
#include <stdlib.h> /* bsearch */
@ -308,6 +308,14 @@ tr_webInit( tr_session * session )
return web;
}
void
tr_webClose( tr_web * web )
{
evtimer_del( &web->timer );
curl_multi_cleanup( web->cm );
tr_free( web );
}
/***
****
***/

View File

@ -7,7 +7,7 @@
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:$
* $Id$
*/
#ifndef TR_HTTP_H
@ -18,6 +18,8 @@ typedef struct tr_web tr_web;
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,