mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
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:
parent
2275a49502
commit
ddbe38cfc9
2 changed files with 7 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue