Changeset 7626


Ignore:
Timestamp:
Jan 6, 2009, 3:21:22 AM (12 years ago)
Author:
charles
Message:

(trunk libT) fix refcount error in the new peer-io refcount code

File:
1 edited

Legend:

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

    r7623 r7626  
    12591259
    12601260                peer->port = port;
    1261                 peer->io = tr_handshakeStealIO( handshake );
    1262                 tr_peerIoRef( peer->io ); /* balanced by the unref in peerDestructor() */
     1261                peer->io = tr_handshakeStealIO( handshake ); /* this steals its refcount too, which is
     1262                                                                balanced by our unref in peerDestructor() */
    12631263                tr_peerIoSetParent( peer->io, t->tor->bandwidth );
    12641264                tr_peerMsgsNew( t->tor, peer, peerCallbackFunc, t, &peer->msgsTag );
Note: See TracChangeset for help on using the changeset viewer.