From: dirk Date: Mon, 23 Nov 2015 20:05:33 +0000 (+0100) Subject: Added missing call to ghost_info->delete_instance. X-Git-Tag: 7.0.1-0~468 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85acc9f2cc4007e4ad84a47f4e044a0ab2755028;p=imagemagick Added missing call to ghost_info->delete_instance. --- diff --git a/coders/pdf.c b/coders/pdf.c index 93b0282fa..b0e510f9d 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -247,7 +247,10 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose, code=0; argv=StringToArgv(command,&argc); if (argv == (char **) NULL) - return(MagickFalse); + { + (ghost_info->delete_instance)(interpreter); + return(MagickFalse); + } (void) (ghost_info->set_stdio)(interpreter,(int(MagickDLLCall *)(void *, char *,int)) NULL,PDFDelegateMessage,PDFDelegateMessage); status=(ghost_info->init_with_args)(interpreter,argc-1,argv+1); diff --git a/coders/ps.c b/coders/ps.c index 6810c5e16..46e9ca100 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -237,7 +237,10 @@ static MagickBooleanType InvokePostscriptDelegate( code=0; argv=StringToArgv(command,&argc); if (argv == (char **) NULL) - return(MagickFalse); + { + (ghost_info->delete_instance)(interpreter); + return(MagickFalse); + } (void) (ghost_info->set_stdio)(interpreter,(int(MagickDLLCall *)(void *, char *,int)) NULL,PostscriptDelegateMessage,PostscriptDelegateMessage); status=(ghost_info->init_with_args)(interpreter,argc-1,argv+1);