Changeset 13653


Ignore:
Timestamp:
Dec 12, 2012, 9:19:25 PM (8 years ago)
Author:
jordan
Message:

fix another pair of #5168 oopses (oopsii?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r13651 r13653  
    174174          if (limit <= 0)
    175175            allowed = false;
     176
     177      tr_torrentUnref (tor);
    176178    }
    177179
     
    18771879  assert (tr_isTorrent (tor));
    18781880
    1879   if (--tor->refCount == 0)
     1881  if (tor->refCount > 1)
     1882    {
     1883      --tor->refCount;
     1884    }
     1885  else if (tor->refCount == 1)
    18801886    {
    18811887      tr_session * session = tor->session;
     
    18851891      tr_runInEventThread (session, closeTorrent, tor);
    18861892      tr_sessionUnlock (session);
     1893
     1894      --tor->refCount;
    18871895    }
    18881896}
Note: See TracChangeset for help on using the changeset viewer.