mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 23:31:02 +00:00
unbind all in dealloc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35523 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
508b45d371
commit
caae5ea873
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,7 @@
|
|||
#import "AppKit/NSView.h"
|
||||
#import "AppKit/NSWindow.h"
|
||||
#import "AppKit/NSKeyValueBinding.h"
|
||||
#import "GSBindingHelpers.h"
|
||||
#import "GNUstepGUI/GSTheme.h"
|
||||
#import "GSGuiPrivate.h"
|
||||
|
||||
|
@ -220,6 +221,8 @@ static NSColor *dtxtCol;
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
// Remove all key value bindings for this object.
|
||||
[GSKeyValueBinding unbindAllForObject: self];
|
||||
TEST_RELEASE (_contents);
|
||||
TEST_RELEASE (_cell_image);
|
||||
TEST_RELEASE (_font);
|
||||
|
|
Loading…
Reference in a new issue