]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcmemory.cpp
X error handler should be extern C (SunCC warning fix)
[wxWidgets.git] / src / gtk / dcmemory.cpp
index a3ac365287797b80972362e05d9bf963a554e360..cab52977462d7be023bd0fa682e66b73a2271cbf 100644 (file)
@@ -54,6 +54,9 @@ wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
 
 wxMemoryDC::~wxMemoryDC()
 {
+#ifdef __WXGTK20__
+    g_object_unref(m_context);
+#endif
 }
 
 void wxMemoryDC::SelectObject( const wxBitmap& bitmap )