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
Родитель 905c12cacc
Коммит 01a613661c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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];