mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:50: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
7c45869d3a
commit
74c70bafcc
2 changed files with 7 additions and 0 deletions
|
@ -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