clear the window-level undo stack to get rid of pending actions when

the window closes (bug 229661)
This commit is contained in:
pinkerton%aol.net 2004-01-23 00:31:20 +00:00
Родитель 61d56ab306
Коммит d6a27bccf5
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -430,6 +430,12 @@ static NSArray* sToolbarDefaults = nil;
NSLog(@"Browser controller died.");
#endif
// clear the window-level undo manager used by the edit field. Not sure
// why this isn't automatically done, but we'll leave objects hanging around in
// the undo/redo if we do not. We also cannot do this in the url bar's dealloc,
// it only works if it's here.
[[[self window] undoManager] removeAllActions];
// active Gecko connections have already been shut down in |windowWillClose|
// so we don't need to worry about that here. We only have to be careful
// not to access anything related to the document, as it's been destroyed. The