From: Paul Cornett Date: Tue, 17 Oct 2006 05:50:10 +0000 (+0000) Subject: remove assert from PurgeOtherRepresentations,we'll have to trust that callers know... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/edba2de33ede5bbef0726e889d89fea2732d592d remove assert from PurgeOtherRepresentations,we'll have to trust that callers know what they're doing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index d459bdbce7..522e383b89 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -997,9 +997,6 @@ void wxBitmap::SetPixbuf(GdkPixbuf* pixbuf, int depth) 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);