Fixed wxCairoContext ctor (wxMSW).

Variable referencing Cairo surface has to be initialized to NULL because otherwise crash can happen in dtor while attempting to destroy the surface.
This commit is contained in:
Artur Wieczorek
2016-03-17 20:52:11 +01:00
parent 494c2e3a6a
commit e26e8f38b9

View File

@@ -1988,6 +1988,9 @@ wxCairoContext::wxCairoContext( wxGraphicsRenderer* renderer, wxWindow *window)
wxCairoContext::wxCairoContext(wxGraphicsRenderer* renderer) :
wxGraphicsContext(renderer)
{
#ifdef __WXMSW__
m_mswSurface = NULL;
#endif // __WXMSW__
m_context = NULL;
}