Correct retain/release issues in NSScrollView and NSWindowController.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26799 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2008-08-02 17:34:04 +00:00
parent 99fc2cf864
commit fb69a9fd22
3 changed files with 25 additions and 11 deletions

View file

@ -444,8 +444,13 @@
if (_window == nil && _document != nil && _owner == _document)
{
[self setWindow: [_document _transferWindowOwnership]];
}
[self setWindow: [_document _transferWindowOwnership]];
}
else
{
// The window was already retained by the NIB loading.
RELEASE(_window);
}
}
else
{