From a786c5094a4ff9b7b1cf6ff7956715b181b92f9e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 19 Oct 2014 12:57:31 +0000 Subject: [PATCH] Don't leave wxSubwindows::m_ids uninitialized. Normally it's initialized by calling Create(), but don't crash deleting an invalid pointer in the dtor if Create() hadn't been called. See #16630. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/subwin.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/wx/msw/subwin.h b/include/wx/msw/subwin.h index 9e48b9e35f..85fdb68186 100644 --- a/include/wx/msw/subwin.h +++ b/include/wx/msw/subwin.h @@ -152,6 +152,7 @@ private: { m_count = 0; m_hwnds = NULL; + m_ids = NULL; } // number of elements in m_hwnds array