Fix memory leak in conversion from wxAny to wxVariant
Dynamically allocated copies in intermediate wxVariantList need to be deleted
This commit is contained in:
@@ -1982,6 +1982,7 @@ wxVariantData* wxVariantDataList::VariantDataFactory(const wxAny& any)
|
||||
{
|
||||
wxAnyList src = any.As<wxAnyList>();
|
||||
wxVariantList dst;
|
||||
dst.DeleteContents(true);
|
||||
wxAnyList::compatibility_iterator node = src.GetFirst();
|
||||
while (node)
|
||||
{
|
||||
|
Reference in New Issue
Block a user