mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 02:40:58 +00:00
* Source/GSXibLoader.m (GSXibKeyedUnarchiver -_preProcessXib:):
Release the document. Patch by Doug Simons <doug.simons@testplant.com> * Source/GSXibLoader.m: Fix a problem where owner, * firstResponder and application were put in the list of top-level objects, creating a retain-cycle. * Source/NSViewController.m: Fix a problem where view * controllers did not release their top-level objects as expected. * Source/NSWindowController.m: Fix a problem where window controllers did not release their top-level objects as expected. Changes made in occordance with https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html Patch by Jonathan Gillaspie <jonathan.gillaspie@testplant.com> git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36134 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0a4708d4d0
commit
0e308561c1
4 changed files with 32 additions and 12 deletions
|
@ -50,6 +50,8 @@
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
// View Controllers are expect to release their own top-level objects
|
||||
[_topLevelObjects makeObjectsPerformSelector: @selector(release)];
|
||||
DESTROY(_nibName);
|
||||
DESTROY(_nibBundle);
|
||||
DESTROY(_representedObject);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue