From: Dwight Perry Date: Fri, 26 Oct 2012 20:11:13 +0000 (-0400) Subject: Removed calls to [super dealloc] for versions > lion X-Git-Tag: LAST_LIBGRAPH~32^2~285 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09655ff6ae1876e4752248f07a5f3d0c4c1c35e1;p=graphviz Removed calls to [super dealloc] for versions > lion --- diff --git a/macosx/GVAttributeInspectorController.m b/macosx/GVAttributeInspectorController.m index 9191e33d0..6f0d4df8a 100644 --- a/macosx/GVAttributeInspectorController.m +++ b/macosx/GVAttributeInspectorController.m @@ -168,7 +168,9 @@ [_allSchemas release]; [_allAttributes release]; - [super dealloc]; + if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) { + [super dealloc]; + } } @end diff --git a/macosx/GVAttributeSchema.m b/macosx/GVAttributeSchema.m index a2aa281c4..b99c094e9 100644 --- a/macosx/GVAttributeSchema.m +++ b/macosx/GVAttributeSchema.m @@ -98,7 +98,9 @@ static NSComboBoxCell *_enumCell = nil; - (void)dealloc { [_element release]; - [super dealloc]; + if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) { + [super dealloc]; + } } diff --git a/macosx/GVDocument.m b/macosx/GVDocument.m index c8d8e5a24..f38afbfbc 100644 --- a/macosx/GVDocument.m +++ b/macosx/GVDocument.m @@ -110,7 +110,9 @@ [_exporter release]; [_graph release]; - [super dealloc]; + if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) { + [super dealloc]; + } } @end diff --git a/macosx/GVExportViewController.m b/macosx/GVExportViewController.m index bf65cff1f..893821bcd 100644 --- a/macosx/GVExportViewController.m +++ b/macosx/GVExportViewController.m @@ -143,7 +143,9 @@ NSMutableArray *_formatRenders = nil; [_filename release]; [_formatRender release]; [_render release]; - [super dealloc]; + if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) { + [super dealloc]; + } } @end diff --git a/macosx/GVFileNotificationCenter.m b/macosx/GVFileNotificationCenter.m index 29789e915..bf303f61f 100644 --- a/macosx/GVFileNotificationCenter.m +++ b/macosx/GVFileNotificationCenter.m @@ -64,7 +64,9 @@ static GVFileNotificationCenter *_defaultCenter = nil; - (void)dealloc { [_path release]; - [super dealloc]; + if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) { + [super dealloc]; + } } @end diff --git a/macosx/GVGraph.m b/macosx/GVGraph.m index b4479bfe3..b5bdd3888 100644 --- a/macosx/GVGraph.m +++ b/macosx/GVGraph.m @@ -215,7 +215,9 @@ extern char *gvplugin_list(GVC_t * gvc, api_t api, const char *str); [_defaultNodeAttributes release]; [_defaultEdgeAttributes release]; - [super dealloc]; + if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) { + [super dealloc]; + } } @end diff --git a/macosx/GVGraphArguments.m b/macosx/GVGraphArguments.m index c83cbb2d6..f2327ee39 100644 --- a/macosx/GVGraphArguments.m +++ b/macosx/GVGraphArguments.m @@ -56,7 +56,9 @@ - (void)dealloc { [_arguments release]; - [super dealloc]; + if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) { + [super dealloc]; + } } @end diff --git a/macosx/GVWindowController.m b/macosx/GVWindowController.m index 773845e96..75e2bfd83 100644 --- a/macosx/GVWindowController.m +++ b/macosx/GVWindowController.m @@ -108,6 +108,9 @@ - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self name:@"GVGraphDocumentDidChange" object:[self document]]; + if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) { + [super dealloc]; + } } @end