From: Vadim Zeitlin Date: Sun, 7 Nov 2010 19:33:55 +0000 (+0000) Subject: Fix memory leak of XRC ids introduced by the ID range support patch. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/74c99b85523c93339596cd244181057f2744992a Fix memory leak of XRC ids introduced by the ID range support patch. Fix bug in linked list processing in RemoveXRCIDEntry() added in r66059: it incorrectly overwrote the XRC id table entry with the next element in the list instead of just updating the pointer used during iteration. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index 10ff03fc39..57f57de8aa 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -2638,7 +2638,7 @@ void wxIdRangeManager::RemoveXRCIDEntry(const char *str_id) } else { - (*p_previousrec) = rec; + p_previousrec = &rec; } } }