mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
b7d056ae43
commit
be4d071bc2
2 changed files with 8 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* Source/NSWorkspace.m (-iconForFile:): Remove unused local variable.
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue