X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff7b1510ea7f7855091df83d75a44415dc1cba18..cb6780ff0129b790a29c0660e936430b0b063db8:/src/gtk1/bitmap.cpp?ds=sidebyside diff --git a/src/gtk1/bitmap.cpp b/src/gtk1/bitmap.cpp index 2180a0cf92..6f3e9146fb 100644 --- a/src/gtk1/bitmap.cpp +++ b/src/gtk1/bitmap.cpp @@ -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