mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Try to better solve the circular reference between the window and the
context. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26527 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
62c268c19f
commit
e137828b7e
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-05-15 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSWindow.m: (-dealloc): Try to better cope with the
|
||||
circular reference between the window and the context.
|
||||
|
||||
2008-05-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSDocumentController.m: Cope with bad values in NSRecentItems
|
||||
|
|
|
@ -783,7 +783,16 @@ many times.
|
|||
*/
|
||||
[GSServerForWindow(self) removeDragTypes: nil fromWindow: self];
|
||||
|
||||
[self _terminateBackendWindow];
|
||||
if (_windowNum)
|
||||
{
|
||||
/* If there was a context, clear it and let it remove the
|
||||
window in that process. We get here again, but without a
|
||||
_windowNum. This indirection is needed so solve the circular
|
||||
references between the window and the context.
|
||||
*/
|
||||
[self _terminateBackendWindow];
|
||||
return;
|
||||
}
|
||||
|
||||
if (_delegate != nil)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue