From: cristy Date: Sun, 18 Sep 2011 02:12:41 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6989 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9cc4a7b1dd605daff0dd2e0b0e1c42f178871dd;p=imagemagick --- diff --git a/MagickCore/xwindow.c b/MagickCore/xwindow.c index 5347d0eec..a4edffbfa 100644 --- a/MagickCore/xwindow.c +++ b/MagickCore/xwindow.c @@ -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; }