Fix nasty retain/release error, which could crash applications after

changing the spell checker language in the spell panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32552 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2011-03-13 17:59:31 +00:00
parent 9fcd522c8a
commit e440b9c138
2 changed files with 8 additions and 1 deletions

View file

@ -273,7 +273,7 @@ static int __documentTag = 0;
languages = [[NSUserDefaults standardUserDefaults]
stringArrayForKey: @"NSLanguages"];
// Set the language to the default for the user.
_language = [languages objectAtIndex: 0];
_language = RETAIN([languages objectAtIndex: 0]);
_wrapFlag = NO;
_position = 0;
_spellPanel = nil;
@ -296,6 +296,7 @@ static int __documentTag = 0;
- (void)dealloc
{
RELEASE(_language);
RELEASE(_ignoredWords);
RELEASE(_serverProxy);
[super dealloc];