Fixed memory leaks and copy paste error in ElementTabSet
Fix pointer conversion bug in Variant
Merge pull request #1 from czbming/master

Variant fixes