input value example

This commit is contained in:
Jorijn van der Graaf 2025-11-12 16:36:52 +01:00
commit 3a45e25409
4 changed files with 36 additions and 1 deletions

View file

@ -66,7 +66,7 @@ namespace Crafter {
const char* value = CppDOMBindings::GetValue(ptr);
if(value != nullptr) {
std::string result(value);
std::free(value);
std::free(const_cast<char*>(value));
return result;
} else {
return "";