From 7192134d1c49b9fba57c0dd3c3a63a684f121f75 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Sun, 17 Jul 2005 19:43:13 +0000 Subject: [PATCH] Further correction for previous fix. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21497 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ GormCore/GormClassEditor.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1ce8242e..3f7f49e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-07-17 15:47 Gregory John Casamento + + * GormCore/GormClassEditor.m: Added code to prevent memory leak + with previous change. + 2005-07-17 15:08 Gregory John Casamento * GormCore/GormClassEditor.m: Removed AUTORELEASE for diff --git a/GormCore/GormClassEditor.m b/GormCore/GormClassEditor.m index d1c8e738..8b81c488 100644 --- a/GormCore/GormClassEditor.m +++ b/GormCore/GormClassEditor.m @@ -299,7 +299,7 @@ NSString *GormSwitchViewPreferencesNotification = @"GormSwitchViewPreferencesNot } // select class in browser... - subClassesArray = [[classManager allSuperClassesOf: className] mutableCopy]; + subClassesArray = [NSMutableArray arrayWithArray: [classManager allSuperClassesOf: className]]; if ((subClassesArray == nil || [subClassesArray count] == 0) && [classManager isRootClass: className] == NO) {