From b273ed105e4c19635a120bb1ff8cddcdf601018e Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 16 Dec 2000 20:19:18 +0000 Subject: [PATCH] Retain/release fix git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8339 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTextView.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/NSTextView.m b/Source/NSTextView.m index 34f8fc7e4..4b953964b 100644 --- a/Source/NSTextView.m +++ b/Source/NSTextView.m @@ -90,8 +90,8 @@ - (void)dealloc { - RELEASE(_selectedTextAttributes); - RELEASE(_markedTextAttributes); + RELEASE (_selectedTextAttributes); + RELEASE (_markedTextAttributes); [super dealloc]; } @@ -111,7 +111,8 @@ { // Notify layoutManager of change? - ASSIGN(_textContainer, aTextContainer); + /* Do not retain: text container is owning us. */ + _textContainer = aTextContainer; } - (void) setTextContainerInset: (NSSize)inset