diff --git a/src/test/javacompat.cpp b/src/test/javacompat.cpp index bce53cb..08e77de 100644 --- a/src/test/javacompat.cpp +++ b/src/test/javacompat.cpp @@ -93,6 +93,7 @@ int main(){ ASSERT(exportedString == javaStdString); std::cout << "Passed Export Java string test." << std::endl; + delete nextChar; return 0; } diff --git a/src/test/nbt_helpers.cpp b/src/test/nbt_helpers.cpp index 73885a2..6189b83 100644 --- a/src/test/nbt_helpers.cpp +++ b/src/test/nbt_helpers.cpp @@ -494,6 +494,6 @@ int main(){ ASSERT(NBT::helper::readString(reinterpret_cast(javaStdString.data()), 0xFFFFF, 0).errorCode == ErrorCodes::OVERRUN); ASSERT(NBT::helper::readString(reinterpret_cast(javaStdString.data()), 0xF, 0).errorCode == ErrorCodes::MISMATCHEDSIZE); std::cout << "Passed readString NBT helper test." << std::endl; - + delete nextChar; return 0; }