]> granicus.if.org Git - imagemagick/commitdiff
Added missing call to ghost_info->delete_instance.
authordirk <dirk@git.imagemagick.org>
Mon, 23 Nov 2015 20:05:33 +0000 (21:05 +0100)
committerdirk <dirk@git.imagemagick.org>
Mon, 23 Nov 2015 20:05:33 +0000 (21:05 +0100)
coders/pdf.c
coders/ps.c

index 93b0282facaf6d5121fe8f1bb82aac0091274b3e..b0e510f9d340a64bec5c973cb7632dc4cd00ef11 100644 (file)
@@ -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);
index 6810c5e16100f53a87c648935118384e38cd2307..46e9ca100cc9c037d4f0df63621e3902997ae6e8 100644 (file)
@@ -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);