From 85acc9f2cc4007e4ad84a47f4e044a0ab2755028 Mon Sep 17 00:00:00 2001 From: dirk Date: Mon, 23 Nov 2015 21:05:33 +0100 Subject: [PATCH] Added missing call to ghost_info->delete_instance. --- coders/pdf.c | 5 ++++- coders/ps.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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); -- 2.40.0