Avoid inadvertently destroying a shared PangoContext on GTK2

wxMemoryDC and wxScreenDC dtors were freeing a context they didn't own, potentially
causing a crash. Fixed by having the base wxWindowDC dtor free the context.
See #18566
This commit is contained in:
Paul Cornett
2019-11-07 11:26:10 -08:00
parent 6878a46725
commit e87ea7389b
4 changed files with 8 additions and 3 deletions

View File

@@ -40,7 +40,6 @@ wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxDC *WXUNUSED(dc) )
wxMemoryDCImpl::~wxMemoryDCImpl()
{
g_object_unref(m_context);
}
void wxMemoryDCImpl::Init()