Ignore:
Timestamp:
Jan 24, 2009, 4:21:34 PM (13 years ago)
Author:
charles
Message:

(trunk libT) more experimental code for Biiaru

File:
1 edited

Legend:

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

    r7790 r7791  
    421421{
    422422    tr_peerIo * io = vio;
    423 
     423    assert( tr_isPeerIo( io ) );
     424
     425    dbgmsg( io, "in tr_peerIo destructor" );
    424426    event_del( &io->event_read );
    425427    event_del( &io->event_write );
     
    431433    __tr_list_destroy( &io->outbuf_datatypes, trDatatypeFree );
    432434
    433     io->magicNumber = 0xDEAD;
     435    memset( io, ~0, sizeof( tr_peerIo ) );
    434436    tr_free( io );
    435437}
     
    440442    if( io )
    441443    {
     444        dbgmsg( io, "in tr_peerIoFree" );
    442445        io->canRead = NULL;
    443446        io->didWrite = NULL;
Note: See TracChangeset for help on using the changeset viewer.