mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Fixing segfault.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18094 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c1d9ea7597
commit
229d1e18d4
2 changed files with 12 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-11-19 01:00 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormDocument.m: Removed AUTORELEASE from creation of placeholders
|
||||
for both the image and the sound. This was causing a segfault.
|
||||
|
||||
2003-11-15 16:53 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormViewWithContectViewEditor.m: Added methods
|
||||
|
@ -34,7 +39,7 @@
|
|||
* GormBoxEditor.m: Removed commented out code.
|
||||
* GormControlEditor.m: same
|
||||
* GormCustomView.m: same
|
||||
* GormFintViewController.m: same
|
||||
* GormFontViewController.m: same
|
||||
* GormGenericEditor.m: same
|
||||
* GormImageEditor.m: same
|
||||
* GormSoundEditor.m: same
|
||||
|
|
|
@ -301,14 +301,14 @@ static NSImage *classesImage = nil;
|
|||
- (GormSound *)_createSoundPlaceHolder: (NSString *)path
|
||||
{
|
||||
NSString *name = [[path lastPathComponent] stringByDeletingPathExtension];
|
||||
return AUTORELEASE([[GormSound alloc] initWithName: name path: path]);
|
||||
return [[GormSound alloc] initWithName: name path: path];
|
||||
}
|
||||
|
||||
// image support
|
||||
- (GormImage *)_createImagePlaceHolder: (NSString *)path
|
||||
{
|
||||
NSString *name = [[path lastPathComponent] stringByDeletingPathExtension];
|
||||
return TEST_AUTORELEASE([[GormImage alloc] initWithName: name path: path]);
|
||||
return [[GormImage alloc] initWithName: name path: path];
|
||||
}
|
||||
|
||||
- (void) beginArchiving
|
||||
|
@ -2003,8 +2003,6 @@ static NSImage *classesImage = nil;
|
|||
*/
|
||||
ASSIGN(documentPath, aFile);
|
||||
[window setTitleWithRepresentedFilename: documentPath];
|
||||
[nc postNotificationName: IBDidOpenDocumentNotification
|
||||
object: self];
|
||||
|
||||
/*
|
||||
* read in all of the sounds in the .gorm wrapper and
|
||||
|
@ -2069,6 +2067,10 @@ static NSImage *classesImage = nil;
|
|||
}
|
||||
}
|
||||
|
||||
// this is the last thing we should do...
|
||||
[nc postNotificationName: IBDidOpenDocumentNotification
|
||||
object: self];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue