Initialize member variables during construction

avoids uninitialized memory accesses later on
This commit is contained in:
Paul Cornett 2017-06-15 08:47:31 -07:00
parent 4558dbe97f
commit b9c9fc3534
2 changed files with 4 additions and 0 deletions

View File

@ -444,6 +444,7 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
long style,
const wxString& name)
{
m_web_view = NULL;
m_busy = false;
m_guard = false;
m_creating = false;

View File

@ -490,6 +490,9 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
long style,
const wxString& name)
{
m_web_view = NULL;
m_dbusServer = NULL;
m_extension = NULL;
m_busy = false;
m_guard = false;
m_creating = false;