mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix memory leak with double-duplicate of structured object
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user