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:
@@ -2638,7 +2638,7 @@ void wxIdRangeManager::RemoveXRCIDEntry(const char *str_id)
|
||||
}
|
||||
else
|
||||
{
|
||||
(*p_previousrec) = rec;
|
||||
p_previousrec = &rec;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user