mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:00:47 +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
9fcd522c8a
commit
e440b9c138
2 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue