Retain/release fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8338 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2000-12-16 20:18:33 +00:00
parent 0e88cae678
commit 45b04bd21e

View file

@ -95,9 +95,17 @@
return self; return self;
} }
- (void) dealloc
{
RELEASE (_textView);
[super dealloc];
}
- (void) setLayoutManager: (NSLayoutManager*)aLayoutManager - (void) setLayoutManager: (NSLayoutManager*)aLayoutManager
{ {
ASSIGN(_layoutManager, aLayoutManager); /* The layout manager owns us - so he retains us and we don't retain
him. */
_layoutManager = aLayoutManager;
} }
- (NSLayoutManager*) layoutManager - (NSLayoutManager*) layoutManager
@ -144,7 +152,7 @@
object: _textView]; object: _textView];
} }
ASSIGN(_textView, aTextView); ASSIGN (_textView, aTextView);
if (aTextView != nil) if (aTextView != nil)
{ {