don't clear folders from the undo queue on dealloc because if we get to

dealloc, it's no longer in the undo queue (duh!) and this causes re-entrancy
crashes on quit (bug 229661)
This commit is contained in:
pinkerton%aol.net 2004-03-26 01:43:14 +00:00
parent bd1b6ead0b
commit 6f26ce44e5

View File

@ -110,7 +110,7 @@ NSString* BookmarkFolderDockMenuChangeNotificaton = @"bf_dmc";
-(void)dealloc
{
[[[BookmarkManager sharedBookmarkManager] undoManager] removeAllActionsWithTarget:self];
// NOTE: we're no longer clearning the undo stack here because its pointless and is a potential crasher
if ([mSpecialFlag unsignedIntValue] & kBookmarkDockMenuFolder)
[[NSNotificationCenter defaultCenter] removeObserver:self name:BookmarkFolderDockMenuChangeNotificaton object:nil];