mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:07:38 +00:00
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:
parent
d4d795bdb2
commit
2223f0009b
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue