Changeset 7791


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

(trunk libT) more experimental code for Biiaru

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bandwidth.c

    r7789 r7791  
    104104    tr_bandwidthSetParent( b, NULL );
    105105    tr_ptrArrayDestruct( &b->children, NULL );
    106     b->magicNumber = 0xDEAD;
    107 
     106
     107    memset( b, ~0, sizeof( tr_bandwidth ) );
    108108    return b;
    109109}
  • 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.