Fix memory leaks of cairo_t caused by ca7670d2fc, see #17697

This commit is contained in:
Paul Cornett
2016-10-24 14:20:13 -07:00
parent fa4b077421
commit 3b27f7cebc
2 changed files with 4 additions and 5 deletions

View File

@@ -1586,10 +1586,7 @@ gtk_wx_cell_renderer_render (GtkCellRenderer *renderer,
if (context)
nativeContext = context->GetNativeContext();
if (cr != nativeContext)
{
cairo_reference(cr);
dc->SetGraphicsContext(wxGraphicsContext::CreateFromNative(cr));
}
#else
wxWindowDCImpl *impl = (wxWindowDCImpl *) dc->GetImpl();