]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/bitmap.cpp
calling insert("") would provoke an assert - now it's just ignored
[wxWidgets.git] / src / gtk1 / bitmap.cpp
index 2180a0cf92ca0a986ce688e02437593958b108a2..6f3e9146fb891ab4e64d61033712c774a8763809 100644 (file)
@@ -13,6 +13,7 @@
 #endif
 
 #include "wx/bitmap.h"
+#include "wx/icon.h"
 #include "gdk/gdkprivate.h"
 
 #ifdef USE_GDK_IMLIB
@@ -98,7 +99,7 @@ wxBitmapRefData::~wxBitmapRefData(void)
 {
 #ifdef USE_GDK_IMLIB
   if (m_pixmap) gdk_imlib_free_pixmap( m_pixmap );
-  if (m_image) gdk_imlib_destroy_image( m_image );
+  if (m_image) gdk_imlib_kill_image( m_image );
 #else
   if (m_pixmap) gdk_pixmap_unref( m_pixmap );
 #endif