]> git.saurik.com Git - wxWidgets.git/commitdiff
Initialize wxXmlResourceHandler members in its ctor.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 May 2013 14:43:13 +0000 (14:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 May 2013 14:43:13 +0000 (14:43 +0000)
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

index d581299cb0c8e010006946757fb97150bd5c59f6..7aa12b7bc6fe006c6f38ae72db92d3e492ee593c 100644 (file)
@@ -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;
     }