From 8e912ebf4727dfeb048f33024f7b8881fa2a2602 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 16 May 2013 14:43:13 +0000 Subject: [PATCH] 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 --- include/wx/xrc/xmlreshandler.h | 6 ++++++ 1 file changed, 6 insertions(+) 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; }