mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
Revert "be more careful when freeing structs" for accidentally committing another patch together which should be reviewed separately.
This reverts commit 0c2157deaf
.
This commit is contained in:
parent
723ddc2a22
commit
08baddba7f
2 changed files with 4 additions and 17 deletions
|
@ -343,16 +343,10 @@ static void gs_jpeg_memory_dest_create (j_compress_ptr cinfo, NSData** data)
|
|||
|
||||
static void gs_jpeg_memory_dest_destroy (j_compress_ptr cinfo)
|
||||
{
|
||||
if (NULL == cinfo)
|
||||
return;
|
||||
|
||||
gs_jpeg_dest_ptr dest = (gs_jpeg_dest_ptr) cinfo->dest;
|
||||
if (NULL != dest)
|
||||
{
|
||||
free (dest->buffer);
|
||||
free (dest->data);
|
||||
free (dest);
|
||||
}
|
||||
free (dest->buffer);
|
||||
free (dest->data);
|
||||
free (dest);
|
||||
cinfo->dest = NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
#import "AppKit/NSTextField.h"
|
||||
#import "AppKit/NSWindow.h"
|
||||
#import "GSGuiPrivate.h"
|
||||
#import "GNUstepBase/NSDebug+GNUstepBase.h"
|
||||
#import "GNUstepGUI/GSServicesManager.h"
|
||||
|
||||
// prototype for function to create name for server
|
||||
|
@ -106,12 +105,6 @@ extern NSString *GSSpellServerName(NSString *checkerDictionary, NSString *langua
|
|||
@implementation GSServicesManager(NSSpellCheckerMethods)
|
||||
- (id)_launchSpellCheckerForLanguage: (NSString *)language
|
||||
{
|
||||
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"GSDisableSpellCheckerServer"])
|
||||
{
|
||||
GSOnceMLog(@"WARNING: spell checker disabled - reset 'GSDisableSpellCheckerServer' to NO in defaults to re-enable");
|
||||
return nil;
|
||||
}
|
||||
|
||||
id<NSSpellServerPrivateProtocol> proxy = nil;
|
||||
NSDictionary *spellCheckers = [_allServices objectForKey: @"BySpell"];
|
||||
NSDictionary *checkerDictionary = [spellCheckers objectForKey: language];
|
||||
|
@ -138,7 +131,7 @@ extern NSString *GSSpellServerName(NSString *checkerDictionary, NSString *langua
|
|||
[(NSDistantObject *)proxy setProtocolForProxy:
|
||||
@protocol(NSSpellServerPrivateProtocol)];
|
||||
}
|
||||
|
||||
|
||||
return proxy;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue