From f67c71a5807e0b05b9e93b587c912ab5fe673b03 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Fri, 22 Feb 2002 23:05:06 +0000 Subject: [PATCH] Don't remove the window autosave frame for the user defaults on dealloc git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12692 72102866-910b-0410-8b05-ffd578937521 --- Source/NSWindow.m | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Source/NSWindow.m b/Source/NSWindow.m index 3f943e754..0cc5e0e8c 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -590,7 +590,14 @@ static NSNotificationCenter *nc = nil; argument: nil]; [NSApp removeWindowsItem: self]; - [self setFrameAutosaveName: nil]; + [windowsLock lock]; + if (_autosaveName != nil) + { + [autosaveNames removeObject: _autosaveName]; + _autosaveName = nil; + } + [windowsLock unlock]; + if (_counterpart != 0 && (_styleMask & NSMiniWindowMask) == 0) { NSWindow *mini = [NSApp windowWithWindowNumber: _counterpart]; @@ -623,7 +630,10 @@ static NSNotificationCenter *nc = nil; [context _removeDragTypes: nil fromWindow: self]; if (_gstate) - DPSundefineuserobject(context, _gstate); + { + DPSundefineuserobject(context, _gstate); + } + if (_windowNum) { DPStermwindow(context, _windowNum);