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

@ -1,3 +1,9 @@
2011-03-13 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSSpellChecker.m (-init, -dealloc): Fix nasty
retain/release error, which could crash applications after
changing the spell checker language in the spell panel.
2011-03-13 Fred Kiefer <FredKiefer@gmx.de> 2011-03-13 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSWorkspace.m (-iconForFile:): Remove unused local variable. * Source/NSWorkspace.m (-iconForFile:): Remove unused local variable.

View file

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