Fix reference counting bug in Tag::operator=

This commit is contained in:
Jon Siwek 2014-07-31 14:32:10 -05:00
parent 382b946098
commit 597edcd3b6

View file

@ -55,6 +55,7 @@ Tag& Tag::operator=(const Tag& other)
{ {
type = other.type; type = other.type;
subtype = other.subtype; subtype = other.subtype;
Unref(val);
val = other.val; val = other.val;
if ( val ) if ( val )