Fix memory leak with double-duplicate of structured object

This commit is contained in:
baldurk
2021-05-13 15:47:54 +01:00
parent 3685ca1c09
commit 46e1f84f2e
+1 -1
View File
@@ -345,7 +345,7 @@ static bool MergeConfigValues(const rdcstr &prefix, SDObject *dstConfig, const S
ret |= true;
// if we're copying nodes, do that now
dstConfig->DuplicateAndAddChild(srcChild->Duplicate());
dstConfig->DuplicateAndAddChild(srcChild);
}
}