diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 1d371c7dca..2d7dac70cb 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -2089,7 +2089,7 @@ wxCairoContext::wxCairoContext( wxGraphicsRenderer* renderer, cairo_t *context ) m_mswSurface = NULL; m_mswStateSavedDC = 0; #endif // __WXMSW__ - Init( context ); + Init( cairo_reference(context) ); m_width = 0; m_height = 0; // Store transformation settings of the underlying source context.