Fix closing X display bug

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5090 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1999-10-27 03:22:11 +00:00
parent 2275a49502
commit ddbe38cfc9
2 changed files with 7 additions and 8 deletions

View file

@ -1,3 +1,7 @@
1999-10-26 Adam Fedor <fedor@gnu.org>
* Source/NSWindow.m (-dealloc): Remove check for context.
Wed Oct 27 1999 Nicola Pero <n.pero@mi.flashnet.it>
Patches by ackyugo@geocities.co.jp fixing bug (horizontal

View file

@ -232,14 +232,9 @@ static NSMapTable* windowmaps = NULL;
*/
[context _removeDragTypes: nil fromWindow: [self windowNumber]];
/* Often, when an app is terminated, an NSWindow is autoreleased after the
context, so we forget about this if there is no more context */
if (context)
{
if (gstate)
DPSundefineuserobject(context, gstate);
DPStermwindow(context, window_num);
}
if (gstate)
DPSundefineuserobject(context, gstate);
DPStermwindow(context, window_num);
NSMapRemove(windowmaps, (void*)window_num);
[super dealloc];
}