Changeset 2226
- Timestamp:
- Jun 29, 2007, 1:59:14 AM (16 years ago)
- Location:
- trunk/macosx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r2225 r2226 312 312 [fTorrents addObject: torrent]; 313 313 [torrent release]; 314 NSLog(@"history restore: %u", (long)[torrent retainCount]);315 314 } 316 315 … … 546 545 //save history and stop running torrents 547 546 [self updateTorrentHistory]; 548 #warning check if all torrents are fully released549 //Torrent * torrent = [fTorrents objectAtIndex: 0];550 //NSLog(@"%d", (long)[torrent retainCount]);551 547 [fDisplayedTorrents removeAllObjects]; 552 553 enumerator = [fTorrents objectEnumerator];554 //Torrent * torrent;555 /*while ((torrent = [enumerator nextObject]))556 [torrent endTorrent];*/557 558 548 [fTorrents removeAllObjects]; 559 //NSLog(@"%d", (long)[torrent retainCount]);549 560 550 //disable NAT traversal 561 551 tr_natTraversalEnable(fLib, 0); … … 1125 1115 if (!lowestOrderValue || [lowestOrderValue compare: currentOrderValue] == NSOrderedDescending) 1126 1116 lowestOrderValue = currentOrderValue; 1127 NSLog(@"before");1117 1128 1118 [fTorrents removeObject: torrent]; 1129 [fDisplayedTorrents removeObject: torrent]; NSLog(@"after");1119 [fDisplayedTorrents removeObject: torrent]; 1130 1120 } 1131 1121 [torrents release]; -
trunk/macosx/InfoWindowController.m
r2225 r2226 631 631 } 632 632 633 #warning disable if all can't be checked 633 634 if (action == @selector(setOnlySelectedCheck:)) 634 635 return [fFileOutline selectedRow] != -1; -
trunk/macosx/Torrent.m
r2225 r2226 191 191 - (void) dealloc 192 192 { 193 NSLog(@"Released!");194 NSLog(@"%d", (long)[self retainCount]);195 193 if (fHandle) 196 194 { … … 1478 1476 return nil; 1479 1477 1480 NSLog(@"init %d", (long)[self retainCount]);1481 1478 static_lastid++; 1482 1479 fID = static_lastid; … … 1588 1585 for (i = 0; i < MAX_PIECES; i++) 1589 1586 fPieces[i] = BLANK_PIECE; 1590 NSLog(@"end1 %d", (long)[self retainCount]);1587 1591 1588 [self update]; 1592 NSLog(@"end2 %d", (long)[self retainCount]);1593 1589 return self; 1594 1590 }
Note: See TracChangeset
for help on using the changeset viewer.