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
This commit is contained in:
Vadim Zeitlin
2010-11-07 19:33:55 +00:00
parent 125c2fccdc
commit 74c99b8552

View File

@@ -2638,7 +2638,7 @@ void wxIdRangeManager::RemoveXRCIDEntry(const char *str_id)
}
else
{
(*p_previousrec) = rec;
p_previousrec = &rec;
}
}
}