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:
@@ -40,7 +40,6 @@ wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxDC *WXUNUSED(dc) )
|
||||
|
||||
wxMemoryDCImpl::~wxMemoryDCImpl()
|
||||
{
|
||||
g_object_unref(m_context);
|
||||
}
|
||||
|
||||
void wxMemoryDCImpl::Init()
|
||||
|
||||
Reference in New Issue
Block a user