Attempt to prevent ProjectCenter crashes when a project is closed by

ensuring that project and editor windows are closed before their
owners are deallocated.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@30599 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-06-07 07:04:24 +00:00
parent b013152da8
commit 082fb0ae70
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2010-06-07 Wolfgang Lux <wolfgang.lux@gmail.com>
* Framework/PCProjectWindow.m (-dealloc):
* Modules/Editors/ProjectCenter/PCEditor.m (-dealloc):
Attempt to prevent crashes when a project is closed by ensuring
that project and editor windows are closed before their owners are
deallocated.
2010-06-04 Riccardo Mottola <rmottola@users.sf.net>
* TextFinder.m:

View file

@ -264,6 +264,7 @@
#endif
[[NSNotificationCenter defaultCenter] removeObserver:self];
[projectWindow close];
[super dealloc];
}

View file

@ -209,10 +209,11 @@
- (void)dealloc
{
#ifdef DEVELOPMENT
#endif
NSLog(@"PCEditor: %@ dealloc", [_path lastPathComponent]);
#endif
[[NSNotificationCenter defaultCenter] removeObserver:self];
[_window close];
// _window is setReleasedWhenClosed:YES
RELEASE(_path);