src/test: free pointers
parent
b5312aeb58
commit
4659946a2f
|
@ -93,6 +93,7 @@ int main(){
|
||||||
|
|
||||||
ASSERT(exportedString == javaStdString);
|
ASSERT(exportedString == javaStdString);
|
||||||
std::cout << "Passed Export Java string test." << std::endl;
|
std::cout << "Passed Export Java string test." << std::endl;
|
||||||
|
delete nextChar;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -494,6 +494,6 @@ int main(){
|
||||||
ASSERT(NBT::helper::readString(reinterpret_cast<uint8_t*>(javaStdString.data()), 0xFFFFF, 0).errorCode == ErrorCodes::OVERRUN);
|
ASSERT(NBT::helper::readString(reinterpret_cast<uint8_t*>(javaStdString.data()), 0xFFFFF, 0).errorCode == ErrorCodes::OVERRUN);
|
||||||
ASSERT(NBT::helper::readString(reinterpret_cast<uint8_t*>(javaStdString.data()), 0xF, 0).errorCode == ErrorCodes::MISMATCHEDSIZE);
|
ASSERT(NBT::helper::readString(reinterpret_cast<uint8_t*>(javaStdString.data()), 0xF, 0).errorCode == ErrorCodes::MISMATCHEDSIZE);
|
||||||
std::cout << "Passed readString NBT helper test." << std::endl;
|
std::cout << "Passed readString NBT helper test." << std::endl;
|
||||||
|
delete nextChar;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue