diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 62b352378..29130fd10 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -1694,12 +1694,6 @@ typedef enum [addresses addObject: [(TrackerNode *)item fullAnnounceAddress]]; } - if (oldCount == [addresses count]) - { - NSBeep(); - return; - } - if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"]) { NSAlert * alert = [[NSAlert alloc] init]; diff --git a/macosx/Torrent.m b/macosx/Torrent.m index f5e71bdf1..a62f4851e 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -587,7 +587,7 @@ int trashDataFile(const char * filename) int count; tr_tracker_stat * stats = tr_torrentTrackers(fHandle, &count); - NSMutableArray * trackers = [NSMutableArray arrayWithCapacity: count + stats[count-1].tier]; + NSMutableArray * trackers = [NSMutableArray arrayWithCapacity: (count > 0 ? count + stats[count-1].tier : 0)]; int prevTier = -1; for (int i=0; i < count; ++i)