Initialize member variables during construction
avoids uninitialized memory accesses later on
This commit is contained in:
parent
4558dbe97f
commit
b9c9fc3534
@ -444,6 +444,7 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
|
|||||||
long style,
|
long style,
|
||||||
const wxString& name)
|
const wxString& name)
|
||||||
{
|
{
|
||||||
|
m_web_view = NULL;
|
||||||
m_busy = false;
|
m_busy = false;
|
||||||
m_guard = false;
|
m_guard = false;
|
||||||
m_creating = false;
|
m_creating = false;
|
||||||
|
@ -490,6 +490,9 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
|
|||||||
long style,
|
long style,
|
||||||
const wxString& name)
|
const wxString& name)
|
||||||
{
|
{
|
||||||
|
m_web_view = NULL;
|
||||||
|
m_dbusServer = NULL;
|
||||||
|
m_extension = NULL;
|
||||||
m_busy = false;
|
m_busy = false;
|
||||||
m_guard = false;
|
m_guard = false;
|
||||||
m_creating = false;
|
m_creating = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user