mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-15 16:11:25 +00:00
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:
parent
b013152da8
commit
082fb0ae70
3 changed files with 11 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -264,6 +264,7 @@
|
|||
#endif
|
||||
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
[projectWindow close];
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue