make clang happy

SVN revision: 45148
This commit is contained in:
Sebastian Dransfeld 2010-01-14 23:48:04 +00:00
parent 2315d4e000
commit 9bc8adc5bc
1 changed files with 6 additions and 3 deletions

View File

@ -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);
}