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:
Nicola Pero 2000-12-16 20:18:33 +00:00
parent 120979e0e2
commit c96deb1436

View file

@ -95,9 +95,17 @@
return self;
}
- (void) dealloc
{
RELEASE (_textView);
[super dealloc];
}
- (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
@ -144,7 +152,7 @@
object: _textView];
}
ASSIGN(_textView, aTextView);
ASSIGN (_textView, aTextView);
if (aTextView != nil)
{