Fix memory leak in EnumType.

Introduced in ca3f7eadbe.

This took a while to find.
This commit is contained in:
Johanna Amann 2016-08-10 18:12:26 -07:00
parent a3b7c91ba4
commit e7611e8521

View file

@ -1682,6 +1682,7 @@ bool EnumType::DoUnserialize(UnserialInfo* info)
return false; return false;
names[name] = val; names[name] = val;
delete [] name; // names[name] converts to std::string
} }
return true; return true;