// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "dcmemory.h"
-#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
#include "wx/dcmemory.h"
wxMemoryDC::~wxMemoryDC()
{
+#ifdef __WXGTK20__
+ g_object_unref(m_context);
+#endif
}
void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
m_window = m_selected.GetBitmap();
}
+#ifdef __WXGTK20__
+ m_selected.PurgeOtherRepresentations(wxBitmap::Pixmap);
+#endif
+
m_isMemDC = TRUE;
SetUpDC();