Ignore:
Timestamp:
Feb 18, 2011, 12:24:09 AM (11 years ago)
Author:
jch
Message:

Fix io_dtor for uTP sockets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r11903 r11906  
    545545    dbgmsg( io, "in tr_peerIo destructor" );
    546546    event_disable( io, EV_READ | EV_WRITE );
    547     event_free( io->event_read );
    548     event_free( io->event_write );
    549547    tr_bandwidthDestruct( &io->bandwidth );
    550548    evbuffer_free( io->outbuf );
    551549    evbuffer_free( io->inbuf );
    552     if( io->socket >= 0 )
     550    if( io->socket >= 0 ) {
     551        event_free( io->event_read );
     552        event_free( io->event_write );
    553553        tr_netClose( io->session, io->socket );
     554    }
    554555    if( io->utp_socket != NULL )
    555556        UTP_Close( io->utp_socket );
Note: See TracChangeset for help on using the changeset viewer.