From ff01c94362fc6c1149e8ab2e472798875b01472e Mon Sep 17 00:00:00 2001 From: englebass Date: Thu, 14 Jan 2010 23:48:04 +0000 Subject: [PATCH] make clang happy git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@45148 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_x/xlib/ecore_x_image.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore_x/xlib/ecore_x_image.c b/src/lib/ecore_x/xlib/ecore_x_image.c index 18722f9..00888cd 100644 --- a/src/lib/ecore_x/xlib/ecore_x_image.c +++ b/src/lib/ecore_x/xlib/ecore_x_image.c @@ -138,9 +138,12 @@ ecore_x_image_free(Ecore_X_Image *im) } else { - if (im->xim) free(im->xim->data); - im->xim->data = NULL; - XDestroyImage(im->xim); + if (im->xim) + { + free(im->xim->data); + im->xim->data = NULL; + XDestroyImage(im->xim); + } } free(im); } -- 2.7.4