git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42073
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxBitmap::PurgeOtherRepresentations(wxBitmap::Representation keep)
{
void wxBitmap::PurgeOtherRepresentations(wxBitmap::Representation keep)
{
- // AllocExclusive should not be needed for this internal function
- wxASSERT(m_refData->GetRefCount() == 1);
-
if (keep == Pixmap && HasPixbuf())
{
g_object_unref (M_BMPDATA->m_pixbuf);
if (keep == Pixmap && HasPixbuf())
{
g_object_unref (M_BMPDATA->m_pixbuf);