X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7452aff578453d1f94d68c101b897aed6b529b7d..5ccb95f690bd7265b1b86718149a79bb97dcf4d8:/src/gtk/dcmemory.cpp diff --git a/src/gtk/dcmemory.cpp b/src/gtk/dcmemory.cpp index a3ac365287..c6ecf57072 100644 --- a/src/gtk/dcmemory.cpp +++ b/src/gtk/dcmemory.cpp @@ -7,10 +7,6 @@ // 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" @@ -54,6 +50,9 @@ wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) ) wxMemoryDC::~wxMemoryDC() { +#ifdef __WXGTK20__ + g_object_unref(m_context); +#endif } void wxMemoryDC::SelectObject( const wxBitmap& bitmap )