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
This commit is contained in:
Nicola Pero 2002-02-22 23:05:06 +00:00
parent a3f9d4432c
commit f67c71a580

View file

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