[wxGTK2] Plug memory leak in wxMemoryDC (approx. 525 bytes per object)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp 2005-09-02 05:14:21 +00:00
parent 49c48f8190
commit 42c60e749f
2 changed files with 6 additions and 0 deletions

View 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 )

View 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 )