Fix referencing of cairo_t returned from wxDCImpl::GetCairoContext().

It was assumed that all callers were going to unref the cairo_t, but that is not
true, so callers that are going to unref it should ref it themselves.
See #15455


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2013-09-03 05:37:30 +00:00
parent ac3bf36958
commit 48829702f1
3 changed files with 6 additions and 6 deletions

View File

@@ -181,8 +181,6 @@ void* wxGTKCairoDCImpl::GetCairoContext() const
cairo_t* cr = NULL;
if (m_graphicContext)
cr = static_cast<cairo_t*>(m_graphicContext->GetNativeContext());
if (cr)
cairo_reference(cr);
return cr;
}
//-----------------------------------------------------------------------------