// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "dcmemory.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
wxMemoryDC::~wxMemoryDC()
{
+#ifdef __WXGTK20__
+ g_object_unref(m_context);
+#endif
}
void wxMemoryDC::SelectObject( const wxBitmap& bitmap )