mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
* GormCore/GormDocument.m: change to log to debug instead.
* GormCore/GormImageEditor.m: properly dealloc the image code. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26468 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
63126d63f7
commit
605ca74210
3 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-04-24 01:21-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormDocument.m: change to log to debug instead.
|
||||
* GormCore/GormImageEditor.m: properly dealloc the image code.
|
||||
|
||||
2008-04-24 00:54-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* English.lproj/GormDocument.gorm: Correct issue with window.
|
||||
|
|
|
@ -1168,7 +1168,7 @@ static NSImage *fileImage = nil;
|
|||
- (id) retain
|
||||
{
|
||||
[super retain];
|
||||
NSLog(@"Retaining document, retain count %d",[self retainCount]);
|
||||
NSDebugLog(@"Retaining document, retain count %d",[self retainCount]);
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -1179,6 +1179,7 @@ static NSImage *fileImage = nil;
|
|||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
ASSIGN(lastEditor, nil);
|
||||
// [filePrefsWindow close];
|
||||
|
||||
// Get rid of the selection box.
|
||||
[selectionBox removeFromSuperviewWithoutNeedingDisplay];
|
||||
|
|
|
@ -118,17 +118,18 @@ static NSMapTable *docMap = 0;
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
if(closed == NO)
|
||||
[self close];
|
||||
// if(closed == NO)
|
||||
// [self close];
|
||||
|
||||
// It is not necessary to call super dealloc here.
|
||||
// images are cached throughout the lifetime of the app.
|
||||
// Once loaded, they are in the cache permanently and
|
||||
// are release on app termination.
|
||||
|
||||
RELEASE(objects);
|
||||
NSDebugLog(@"Released...");
|
||||
GSNOSUPERDEALLOC;
|
||||
// RELEASE(objects);
|
||||
NSDebugLog(@"Released image editor...");
|
||||
// GSNOSUPERDEALLOC;
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) close
|
||||
|
|
Loading…
Reference in a new issue