mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
* English.lproj/GormDocument.gorm: Correct issue with window.
* GormCore/GormDocument.m * GormCore/GormImageEditor.m * GormCore/GormObjectEditor.m * GormCore/GormSoundEditor.m: Fix memory leak. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26467 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c7b56de0d1
commit
63126d63f7
8 changed files with 33 additions and 6 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2008-04-24 00:54-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* English.lproj/GormDocument.gorm: Correct issue with window.
|
||||||
|
* GormCore/GormDocument.m
|
||||||
|
* GormCore/GormImageEditor.m
|
||||||
|
* GormCore/GormObjectEditor.m
|
||||||
|
* GormCore/GormSoundEditor.m: Fix memory leak.
|
||||||
|
|
||||||
2008-04-23 20:03-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
2008-04-23 20:03-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Palettes/1Windows/GormNSWindowInspector.gorm: Connected the
|
* Palettes/1Windows/GormNSWindowInspector.gorm: Connected the
|
||||||
|
|
|
@ -34,6 +34,13 @@
|
||||||
);
|
);
|
||||||
Super = NSDocument;
|
Super = NSDocument;
|
||||||
};
|
};
|
||||||
|
GormDocumentWindow = {
|
||||||
|
Actions = (
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
);
|
||||||
|
Super = NSWindow;
|
||||||
|
};
|
||||||
GormFilePrefsManager = {
|
GormFilePrefsManager = {
|
||||||
Actions = (
|
Actions = (
|
||||||
"showIncompatibilities:",
|
"showIncompatibilities:",
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1160,6 +1160,18 @@ static NSImage *fileImage = nil;
|
||||||
NSDebugLog(@"Owner changed for %@", sender);
|
NSDebugLog(@"Owner changed for %@", sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) release
|
||||||
|
{
|
||||||
|
[super release];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (id) retain
|
||||||
|
{
|
||||||
|
[super retain];
|
||||||
|
NSLog(@"Retaining document, retain count %d",[self retainCount]);
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dealloc all things owned by a GormDocument object.
|
* Dealloc all things owned by a GormDocument object.
|
||||||
*/
|
*/
|
||||||
|
@ -1174,8 +1186,6 @@ static NSImage *fileImage = nil;
|
||||||
RELEASE(classManager);
|
RELEASE(classManager);
|
||||||
RELEASE(filePrefsManager);
|
RELEASE(filePrefsManager);
|
||||||
RELEASE(filePrefsView);
|
RELEASE(filePrefsView);
|
||||||
RELEASE(savedEditors);
|
|
||||||
RELEASE(openEditors);
|
|
||||||
RELEASE(hidden);
|
RELEASE(hidden);
|
||||||
|
|
||||||
if (objToName != 0)
|
if (objToName != 0)
|
||||||
|
@ -1196,6 +1206,8 @@ static NSImage *fileImage = nil;
|
||||||
RELEASE(topLevelObjects);
|
RELEASE(topLevelObjects);
|
||||||
RELEASE(visibleWindows);
|
RELEASE(visibleWindows);
|
||||||
RELEASE(deferredWindows);
|
RELEASE(deferredWindows);
|
||||||
|
DESTROY(savedEditors);
|
||||||
|
DESTROY(openEditors);
|
||||||
|
|
||||||
TEST_RELEASE(scmWrapper);
|
TEST_RELEASE(scmWrapper);
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
|
|
|
@ -38,7 +38,7 @@ static NSMapTable *docMap = 0;
|
||||||
if (self == [GormImageEditor class])
|
if (self == [GormImageEditor class])
|
||||||
{
|
{
|
||||||
docMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
|
docMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
|
||||||
NSObjectMapValueCallBacks, 2);
|
NSNonRetainedObjectMapValueCallBacks, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,8 +98,8 @@ static NSMapTable *docMap = 0;
|
||||||
{
|
{
|
||||||
if (self == [GormObjectEditor class])
|
if (self == [GormObjectEditor class])
|
||||||
{
|
{
|
||||||
docMap = NSCreateMapTable(NSObjectMapKeyCallBacks,
|
docMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
|
||||||
NSObjectMapValueCallBacks,
|
NSNonRetainedObjectMapValueCallBacks,
|
||||||
2);
|
2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ static NSMapTable *docMap = 0;
|
||||||
if (self == [GormSoundEditor class])
|
if (self == [GormSoundEditor class])
|
||||||
{
|
{
|
||||||
docMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
|
docMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
|
||||||
NSObjectMapValueCallBacks, 2);
|
NSNonRetainedObjectMapValueCallBacks, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue