diff --git a/src/Amalgam/string/StringInternPool.h b/src/Amalgam/string/StringInternPool.h index 6b5ef4d8..3ccd239c 100644 --- a/src/Amalgam/string/StringInternPool.h +++ b/src/Amalgam/string/StringInternPool.h @@ -306,9 +306,10 @@ class StringInternPool //one is static, destroy the other if(sid_1_static) - DestroyStringReference(sid_2_static); + DestroyStringReference(sid_2); else - DestroyStringReference(sid_1_static); + DestroyStringReference(sid_1); + return; } std::array string_ids = { sid_1, sid_2 };