diff --git a/src/gtk/artgtk.cpp b/src/gtk/artgtk.cpp index 8cdcb39bf7..c31b1c8c8e 100644 --- a/src/gtk/artgtk.cpp +++ b/src/gtk/artgtk.cpp @@ -273,7 +273,7 @@ wxBitmap wxGTK2ArtProvider::CreateBitmap(const wxArtID& id, GDK_INTERP_BILINEAR); if (p2) { - gdk_pixbuf_unref(pixbuf); + g_object_unref (G_OBJECT (pixbuf)); pixbuf = p2; } } diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 47dbc17fc5..07d4a143aa 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -261,7 +261,7 @@ wxBitmapRefData::~wxBitmapRefData() if (m_bitmap) g_object_unref (G_OBJECT (m_bitmap)); if (m_pixbuf) - gdk_pixbuf_unref( m_pixbuf ); + g_object_unref (G_OBJECT (m_pixbuf)); delete m_mask; #if wxUSE_PALETTE delete m_palette; @@ -1485,7 +1485,7 @@ GdkPixbuf *wxBitmap::GetPixbuf() const } } - gdk_pixbuf_unref(pmask); + g_object_unref (G_OBJECT (pmask)); } } } @@ -1513,7 +1513,7 @@ void wxBitmap::PurgeOtherRepresentations(wxBitmap::Representation keep) { if (keep == Pixmap && HasPixbuf()) { - gdk_pixbuf_unref( M_BMPDATA->m_pixbuf ); + g_object_unref (G_OBJECT (M_BMPDATA->m_pixbuf)); M_BMPDATA->m_pixbuf = NULL; } if (keep == Pixbuf && HasPixmap())