[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:
parent
49c48f8190
commit
42c60e749f
@ -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 )
|
||||
|
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user