diff --git a/Jupiter/String_Type_Imp.h b/Jupiter/String_Type_Imp.h index b0eec2d..04627e8 100644 --- a/Jupiter/String_Type_Imp.h +++ b/Jupiter/String_Type_Imp.h @@ -289,6 +289,8 @@ template size_t Jupiter::String_Type::replace(const T *target, si size_t *tInstances = new size_t[instancesSize * 2]; for (instanceCount = 0; instanceCount != instancesSize; instanceCount++) tInstances[instanceCount] = instances[instanceCount]; + delete[] instances; + instances = tInstances; instancesSize *= 2; } instances[instanceCount] = i; diff --git a/Release/Jupiter.lib b/Release/Jupiter.lib index 84c535c..309e408 100644 Binary files a/Release/Jupiter.lib and b/Release/Jupiter.lib differ