From: Vadim Zeitlin Date: Thu, 16 May 2013 14:43:13 +0000 (+0000) Subject: Initialize wxXmlResourceHandler members in its ctor. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8e912ebf4727dfeb048f33024f7b8881fa2a2602?hp=615f9ff096c8c6553361975ab0504255c0f1f584 Initialize wxXmlResourceHandler members in its ctor. Not sure if this results in any real problems but at the very least memory checking tools give errors about reading uninitialized memory in wxXmlResourceHandlerImpl::CreateResource() if we leave them uninitialized, so do initialize all the pointers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/xrc/xmlreshandler.h b/include/wx/xrc/xmlreshandler.h index d581299cb0..7aa12b7bc6 100644 --- a/include/wx/xrc/xmlreshandler.h +++ b/include/wx/xrc/xmlreshandler.h @@ -131,6 +131,12 @@ public: // it, SetImpl() needs to be called as done by wxXmlResource::AddHandler(). wxXmlResourceHandler() { + m_node = NULL; + m_parent = + m_instance = NULL; + m_parentAsWindow = NULL; + m_resource = NULL; + m_impl = NULL; }