Fix more leaks based on changes in #763
diff --git a/coders/dps.c b/coders/dps.c
index e4430be..e110c3b 100644
--- a/coders/dps.c
+++ b/coders/dps.c
@@ -316,12 +316,18 @@
     {
       (void) CloseBlob(image);
       colors=(XColor *) RelinquishMagickMemory(colors);
+      XDestroyImage(dps_image);
+      XFreeResources(display,visual_info,map_info,(XPixelInfo *) NULL,
+        (XFontStruct *) NULL,&resource_info,(XWindowInfo *) NULL);
       return(GetFirstImageInList(image));
     }
   status=SetImageExtent(image,image->columns,image->rows,exception);
   if (status == MagickFalse)
     {
       colors=(XColor *) RelinquishMagickMemory(colors);
+      XDestroyImage(dps_image);
+      XFreeResources(display,visual_info,map_info,(XPixelInfo *) NULL,
+        (XFontStruct *) NULL,&resource_info,(XWindowInfo *) NULL);
       return(DestroyImageList(image));
     }
   switch (image->storage_class)