From caae5ea873157dec8d6e12ec4e75bad9bad68141 Mon Sep 17 00:00:00 2001 From: Marcian Lytwyn Date: Tue, 4 Sep 2012 17:09:54 +0000 Subject: [PATCH] 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 --- Source/NSCell.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/NSCell.m b/Source/NSCell.m index d3bcaab6a..acce736af 100644 --- a/Source/NSCell.m +++ b/Source/NSCell.m @@ -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);