Changeset 3249


Ignore:
Timestamp:
Oct 1, 2007, 5:49:23 AM (14 years ago)
Author:
charles
Message:

fix bizarre libevent contortion that made valgrind cry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/trevent.c

    r3247 r3249  
    345345    else
    346346        tr_timerFree( &timer );
     347
     348    tr_free( del );
    347349}
    348350
     
    360362    if( timer!=NULL && !timer->inCallback ) {
    361363        if( tr_amInThread( timer->eh->thread ) ) {
     364            void * del = tr_list_remove( &timer->eh->commands, timer, timerCompareFunc );
    362365            --timer->eh->timerCount;
    363366            event_del( &timer->event );
    364367            tr_free( timer );
     368            tr_free( del );
    365369        } else {
    366370            struct tr_event_command * cmd = tr_new0( struct tr_event_command, 1 );
Note: See TracChangeset for help on using the changeset viewer.