gdk_pixbuf_unref -> g_object_unref
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5e4bf05abd
commit
1a3a1b2df2
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user