From 8f8652c5d62dff6d8f220d44aac1caae307a3c35 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 17:27:03 +0000 Subject: [PATCH] Decompile fn_18302 (XmlDocument::Parse) Batch #14598 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_18302 XmlDocument::Parse: logic confirmed by peer review Peer-reviewed-by: secret, Tanke, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Resource/XmlParsing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Resource/XmlParsing.cpp b/Source/Resource/XmlParsing.cpp index 44021a765..5f2d1cd26 100644 --- a/Source/Resource/XmlParsing.cpp +++ b/Source/Resource/XmlParsing.cpp @@ -151,7 +151,7 @@ bool XmlDocument::Parse(const char* begin, const char* end) { if (this->child != nullptr) { this->Reset(); if (this->buffer != nullptr) { - std::free(this->buffer); + delete[] static_cast(this->buffer); this->buffer = nullptr; } }