diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-04-26 12:25:20 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-04-26 12:25:20 +0100 |
commit | 85512849860e4fa500ca74b34036bf270382c292 (patch) | |
tree | c7156683c384d16a0a64cbd683ddbea4aa817f5b | |
parent | ac31cfb1310899656c24575db895a6cd4101fee7 (diff) |
Avoid XDestroyImage(NULL) if XGetImage failed
Avoid XDestroyImage(NULL) crash if XGetImage failed for icon_pixmap
-rw-r--r-- | hw/xwin/winmultiwindowicons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xwin/winmultiwindowicons.c b/hw/xwin/winmultiwindowicons.c index b1b9a87b6..abac4709a 100644 --- a/hw/xwin/winmultiwindowicons.c +++ b/hw/xwin/winmultiwindowicons.c @@ -530,9 +530,9 @@ winXIconToHICON (Display *pDisplay, Window id, int iconSize) if (xImageMask) XDestroyImage(xImageMask); - } - XDestroyImage(xImageIcon); + XDestroyImage(xImageIcon); + } } XFree(hints); } |