Some more NanoX compile fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-02-21 14:52:04 +00:00
parent 20bd88adbc
commit 788519c605
8 changed files with 237 additions and 47 deletions

View File

@@ -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<pix_array_n && pix_array[j]==0) j++;
}
#endif
delete [] pix_array;
}
if (destroyable)
XFreeColormap(display, cmap);