mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
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:
parent
bd1b6ead0b
commit
6f26ce44e5
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user