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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user