diff --git a/Jupiter/Readable_String_Imp.h b/Jupiter/Readable_String_Imp.h index 05c7701..06a1b6a 100644 --- a/Jupiter/Readable_String_Imp.h +++ b/Jupiter/Readable_String_Imp.h @@ -1357,6 +1357,9 @@ template template class R> const R &Jupiter::R template template class R> inline typename Jupiter::Readable_String::TokenizeResult &Jupiter::Readable_String::TokenizeResult::operator=(typename const Jupiter::Readable_String::TokenizeResult &right) { + if (Jupiter::Readable_String::TokenizeResult::tokens != nullptr) + delete[] Jupiter::Readable_String::TokenizeResult::tokens; + Jupiter::Readable_String::TokenizeResult::tokens = new R[source.token_count]; Jupiter::Readable_String::TokenizeResult::token_count = 0; while (Jupiter::Readable_String::TokenizeResult::token_count != source.token_count) @@ -1369,6 +1372,9 @@ template template class R> inline typename Jupite template template class R> inline typename Jupiter::Readable_String::TokenizeResult &Jupiter::Readable_String::TokenizeResult::operator=(typename Jupiter::Readable_String::TokenizeResult &&right) { + if (Jupiter::Readable_String::TokenizeResult::tokens != nullptr) + delete[] Jupiter::Readable_String::TokenizeResult::tokens; + Jupiter::Readable_String::TokenizeResult::tokens = source.tokens; Jupiter::Readable_String::TokenizeResult::token_count = source.token_count; source.tokens = nullptr; diff --git a/Release/Jupiter.lib b/Release/Jupiter.lib index 33337b6..21a24a4 100644 Binary files a/Release/Jupiter.lib and b/Release/Jupiter.lib differ