From b79e36adf4cbb2075f7544328cf0fda077eea8d8 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 21:54:28 +0000 Subject: [PATCH] Decompile fn_10762 (UIEditCtrl3::DecodeLinkFields) Batch #15353 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_10762 UIEditCtrl3::DecodeLinkFields: logic confirmed by peer review Peer-reviewed-by: eAthena, alisonrag Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Edit/UIEditCtrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/UI/Edit/UIEditCtrl.cpp b/Source/UI/Edit/UIEditCtrl.cpp index b54e725e7..4eb65e7b2 100644 --- a/Source/UI/Edit/UIEditCtrl.cpp +++ b/Source/UI/Edit/UIEditCtrl.cpp @@ -10198,7 +10198,7 @@ void UIEditCtrl3::DecodeLinkFields(const std::string& link, std::vector& fi return; } - char* text = static_cast(std::malloc(static_cast(length))); + char* text = new char[length]; strcpy_s(text, length, link.c_str()); std::string value; @@ -10267,7 +10267,7 @@ void UIEditCtrl3::DecodeLinkFields(const std::string& link, std::vector& fi } } - std::free(text); + delete[] text; } // OFFSET: 0x00859220