X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fx11.c;h=6d5cb0a9ffe513e25af43487da2dad744eb53aff;hp=2a21abcc89af91b55eb78c2c134cb0d1042bb5d6;hb=201eaae5ae325e0c99e43ab240163a99dc5c0db9;hpb=3e7289558277c65b6ddcbef0f663d100e7d237fc diff --git a/src/libgame/x11.c b/src/libgame/x11.c index 2a21abcc..6d5cb0a9 100644 --- a/src/libgame/x11.c +++ b/src/libgame/x11.c @@ -425,12 +425,14 @@ inline Pixel X11GetPixelFromRGB(unsigned int color_r, unsigned int color_g, inline void X11DestroyImage(XImage *ximage) { +#if defined(TARGET_X11_NATIVE) /* this seems to be needed for OS/2, but does not hurt on other platforms */ if (ximage->data != NULL) { free(ximage->data); ximage->data = NULL; } +#endif /* TARGET_X11_NATIVE */ XDestroyImage(ximage); }