From a939756a023cc5bc51592615b7b013fdd48c1e9a Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Tue, 14 Jan 2003 06:50:45 +0000 Subject: [PATCH] Corrected another small problem w/ custom class support. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@15593 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ GormDocument.m | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index e3d3a55c..96f33f16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-01-14 Gregory John Casamento + + * GormDocument.m: replaceTemplatesWithObjects: when + restoring the editing object the template was not + being destroyed properly. This is now fixed. + 2003-01-14 Gregory John Casamento * GormDocument.m: replaceObjectsWithTemplates: added a diff --git a/GormDocument.m b/GormDocument.m index 8ce0b6d3..65d1b172 100644 --- a/GormDocument.m +++ b/GormDocument.m @@ -1270,6 +1270,7 @@ static NSImage *classesImage = nil; [[template superview] replaceSubview: template with: obj]; } [nameTable setObject: obj forKey: key]; + RELEASE(template); // get rid of the template... } [tempNameTable removeAllObjects]; }