зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
905c12cacc
Коммит
01a613661c
|
@ -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];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче