Skip to content
Snippets Groups Projects
Commit 5a16caa7 authored by lh1887's avatar lh1887
Browse files

[variant] implement Rule of Five

If the variant object was destroyed, the memory for the object itself was properly
free'd. However, the dtor would never been called on the object (unless it's of literal type)
and hence memory that was itself managed by the object would leak. The same reasoning
applies if the type of the object held by the variant changed. This commit fixes this and cleans up
when appropiate.
parent 7ed6f034
No related branches found
No related tags found
1 merge request!7Fix variant fallback
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment