From 663bbf892b9e409a59dd9db2bf1559bb36f34766 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 22 Feb 2014 22:39:56 +0000 Subject: [PATCH] Remove confusing delete from wxIdRangeManager dtor. The singleton dtor shouldn't delete the global singleton object, if this were ever really possible, it would result in an infinite recursion. And even though it was not (because ms_instance was reset to NULL before destroying the object pointed by it), this delete was still confusing and unnecessary, so remove it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xrc/xmlres.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index 49ff0ff48a..bfc209aef3 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -1262,8 +1262,6 @@ wxIdRangeManager::~wxIdRangeManager() delete *i; } m_IdRanges.clear(); - - delete ms_instance; } void wxIdRangeManager::AddRange(const wxXmlNode* node)