mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 16:21:58 +00:00
Release the key value binding as it will be
retained in the binding table. Leak found by static code analyser. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32484 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fcfa7dafb4
commit
a953d2bda0
8 changed files with 87 additions and 43 deletions
|
@ -4967,13 +4967,17 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
|||
{
|
||||
if ([binding hasPrefix: NSHiddenBinding])
|
||||
{
|
||||
GSKeyValueBinding *kvb;
|
||||
|
||||
[self unbind: binding];
|
||||
[[GSKeyValueOrBinding alloc] initWithBinding: NSHiddenBinding
|
||||
kvb = [[GSKeyValueOrBinding alloc] initWithBinding: NSHiddenBinding
|
||||
withName: binding
|
||||
toObject: anObject
|
||||
withKeyPath: keyPath
|
||||
options: options
|
||||
fromObject: self];
|
||||
// The binding will be retained in the binding table
|
||||
RELEASE(kvb);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue