Unbind key bindings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33511 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-07-11 08:40:31 +00:00
parent d938e01461
commit e04f21516d
4 changed files with 20 additions and 3 deletions

View file

@ -47,6 +47,7 @@
#import "AppKit/NSWorkspace.h"
#import "NSDocumentFrameworkPrivate.h"
#import "GSGuiPrivate.h"
#import "GSBindingHelpers.h"
static NSString *NSTypesKey = @"NSTypes";
static NSString *NSNameKey = @"NSName";
@ -327,6 +328,9 @@ TypeInfoForHumanReadableName (NSArray *types, NSString *typeName)
- (void) dealloc
{
// Remove all key value bindings for this object.
[GSKeyValueBinding unbindAllForObject: self];
[[[NSWorkspace sharedWorkspace] notificationCenter] removeObserver: self];
RELEASE (_documents);
RELEASE (_recent_documents);