mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 12:10:37 +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
120979e0e2
commit
c96deb1436
1 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue