Changeset 9818


Ignore:
Timestamp:
Dec 24, 2009, 6:50:34 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #2416 "crash in event_queue_insert" -- another experimental commit. /as an experiment/ let's just leak that event struct and see if that makes the crash go away. Obviously leaking those objects is not a long term fix but this will help point the way towards the real fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r9813 r9818  
    5454    tr_address addr;
    5555    struct event timer_event;
    56     tr_list * freeme;
     56    /*tr_list * freeme;*/
    5757};
    5858
     
    6161{
    6262    curl_multi_cleanup( g->multi );
    63     tr_list_free( &g->freeme, tr_free );
     63    /*tr_list_free( &g->freeme, tr_free );*/
    6464    evtimer_del( &g->timer_event );
    6565    memset( g, TR_MEMORY_TRASH, sizeof( struct tr_web ) );
     
    290290        {
    291291            event_del( io_event );
    292             memset( io_event, TR_MEMORY_TRASH, sizeof( struct event ) );
    293             tr_list_append( &web->freeme, io_event );
     292            /*memset( io_event, TR_MEMORY_TRASH, sizeof( struct event ) );
     293              tr_list_append( &web->freeme, io_event );*/
    294294            curl_multi_assign( web->multi, fd, NULL );
    295295            /*fprintf( stderr, "-1 io_events to %d\n", --num_events );*/
     
    325325{
    326326    tr_web * g = vg;
    327     tr_list_free( &g->freeme, tr_free );
     327    /*tr_list_free( &g->freeme, tr_free );*/
    328328    dbgmsg( "libevent timer is done" );
    329329    tr_multi_perform( g, CURL_SOCKET_TIMEOUT, 0 );
Note: See TracChangeset for help on using the changeset viewer.