fix: memory leak

This commit is contained in:
TopchetoEU 2022-11-24 14:24:41 +02:00
parent 0a352f29a9
commit ee16dfbe71

View File

@ -150,6 +150,7 @@ namespace ppc::data {
value_t(map_t(map)) { } value_t(map_t(map)) { }
value_t &value_t::operator=(const value_t &other) { value_t &value_t::operator=(const value_t &other) {
this->~value_t();
type = other.type; type = other.type;
switch (other.type) { switch (other.type) {
case type_t::Map: case type_t::Map: