X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7266b6723573ce6317577226cb1e5d32826e24e8..2db991f4576e7b08e4aa877c6350cca9656a60cc:/src/x11/palette.cpp diff --git a/src/x11/palette.cpp b/src/x11/palette.cpp index eb5cb7bdf1..8ee782b8e4 100644 --- a/src/x11/palette.cpp +++ b/src/x11/palette.cpp @@ -89,6 +89,7 @@ wxPaletteRefData::~wxPaletteRefData() if (pix_array_n > 0) { +#if !wxUSE_NANOX // XFreeColors(display, cmap, pix_array, pix_array_n, 0); // Be careful not to free '0' pixels... int i, j; @@ -97,9 +98,10 @@ wxPaletteRefData::~wxPaletteRefData() if(j > i) XFreeColors(display, cmap, &pix_array[i], j-i, 0); while(j