Release the stack, as it is retained in the thread dictionary.

Leak found by static code analyser.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32493 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-03-07 21:18:19 +00:00
parent d4d795bdb2
commit 2223f0009b
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2011-03-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSGraphicsContext.m (+saveGraphicsState): Release the
stack, as it is retained in the thread dictionary.
Leak found by static code analyser.
2011-03-07 Fred Kiefer <FredKiefer@gmx.de>
* gui/Headers/Additions/GNUstepGUI/GSDisplayServer.h

View file

@ -262,6 +262,7 @@ NSGraphicsContext *GSCurrentContext(void)
{
stack = [[NSMutableArray allocWithZone: _globalGSZone] init];
[dict setObject: stack forKey: NSGraphicsContextStackKey];
RELEASE(stack);
}
// might be nil, i.e. no current context
ctxt = GSCurrentContext();