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) {