]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 18 Sep 2011 02:12:41 +0000 (02:12 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 18 Sep 2011 02:12:41 +0000 (02:12 +0000)
MagickCore/xwindow.c

index 5347d0eec868ab22fbfb169bc2ed99ba87927392..a4edffbfa2052066789a9a9e97cbb1c3031bbc4f 100644 (file)
@@ -389,6 +389,12 @@ MagickExport void DestroyXResources(void)
     }
   if (windows->class_hints != (XClassHint *) NULL)
     {
+      if (windows->class_hints->res_name != (char *) NULL)
+        windows->class_hints->res_name=DestroyString(
+          windows->class_hints->res_name);
+      if (windows->class_hints->res_class != (char *) NULL)
+        windows->class_hints->res_class=DestroyString(
+          windows->class_hints->res_class);
       XFree(windows->class_hints);
       windows->class_hints=(XClassHint *) NULL;
     }