mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 18:41:57 +00:00
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:
parent
0e88cae678
commit
45b04bd21e
1 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue