Some additional changes for memory/crash issues after the memory-leak fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19323 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-05-14 15:41:31 +00:00
parent 653a7f40a1
commit 73cf5625be
5 changed files with 14 additions and 9 deletions

View file

@ -1,3 +1,14 @@
2004-05-14 11:36 Gregory John Casamento <greg_casamento@yahoo.com>
* GormButtonEditor.m: Added a line between some methods to
improve readability.
* GormDocument.m: [GormDocument instantiateClass:] removed
extra release for an object being added to the objectsView
which is already autoreleased (in setName:forObject:).
* GormInspectorsManager.m: [GormNotApplicableInspector setObject:]
method removed. This was a temporary hack until the memory leak
was located.
2004-05-14 02:39 Gregory John Casamento <greg_casamento@yahoo.com> 2004-05-14 02:39 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassManager.m: Moved the call to _touch to the bottom of * GormClassManager.m: Moved the call to _touch to the bottom of

View file

@ -301,6 +301,7 @@ static NSRect oldFrame;
done_editing = YES; done_editing = YES;
} }
} }
- (void) textDidChange: (NSNotification *)aNotification - (void) textDidChange: (NSNotification *)aNotification
{ {
[_EO setTitle: [[aNotification object] string]]; [_EO setTitle: [[aNotification object] string]];

View file

@ -1951,7 +1951,6 @@ static NSImage *classesImage = nil;
[self setName: nil forObject: item]; [self setName: nil forObject: item];
[self attachObject: item toParent: nil]; [self attachObject: item toParent: nil];
RELEASE(item);
[selectionView selectCellWithTag: 0]; [selectionView selectCellWithTag: 0];
[selectionBox setContentView: scrollView]; [selectionBox setContentView: scrollView];

View file

@ -145,15 +145,9 @@
} }
return self; return self;
} }
- (void) setObject: (id)anObject
{
object = nil;
[super setObject: anObject];
}
@end @end
@interface GormISelectionView : NSView @interface GormISelectionView : NSView
{ {

View file

@ -162,7 +162,7 @@ static NSMapTable *docMap = 0;
[document detachObject: obj]; [document detachObject: obj];
} }
} }
[objects removeObjectIdenticalTo: selected]; [objects removeObjectIdenticalTo: selected];
[self selectObjects: [NSArray array]]; [self selectObjects: [NSArray array]];
[self refreshCells]; [self refreshCells];