]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xpmdecod.cpp
merged fixes for accel and command event non propagation from 2.2
[wxWidgets.git] / src / common / xpmdecod.cpp
index f05334ba3f3045dca9704fa2a193ffa7a02cf6f0..3b33170ab78a8f26b60f15a77afbe00092d54a35 100644 (file)
@@ -222,7 +222,11 @@ wxImage wxXPMDecoder::ReadFile(wxInputStream& stream)
     wxImage img = ReadData(xpm_lines);
 
     delete[] xpm_buffer;
+#ifdef __WIN16__
+    delete[] (char**) xpm_lines;
+#else
     delete[] xpm_lines;
+#endif
     return img;
 }
 #endif // wxUSE_STREAMS