Merge remote-tracking branch 'origin/topic/jsiwek/fix-enumtype-shallow-clone'

* origin/topic/jsiwek/fix-enumtype-shallow-clone:
  Fix ref-counting bug in EnumType copy ctor
This commit is contained in:
Robin Sommer 2019-07-16 15:21:37 +00:00
commit a45cc53892
5 changed files with 22 additions and 1 deletions

View file

@ -1088,6 +1088,9 @@ EnumType::EnumType(const EnumType* e)
names[it->first] = it->second;
vals = e->vals;
for ( auto& kv : vals )
::Ref(kv.second);
}
EnumType* EnumType::ShallowClone()