From e80a7b3b57ed1548ae694a39e9b6ddd123e097b2 Mon Sep 17 00:00:00 2001 From: "Hagb (Junyu Guo)" Date: Wed, 7 May 2025 23:46:56 +0800 Subject: [PATCH] fix memory leak of additional text information on replay mode of giuroll --- modules/ReplayInputView+/Text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ReplayInputView+/Text.cpp b/modules/ReplayInputView+/Text.cpp index bdc504f3..e6fe0ca0 100644 --- a/modules/ReplayInputView+/Text.cpp +++ b/modules/ReplayInputView+/Text.cpp @@ -133,6 +133,7 @@ class TextUnit { for (auto e = _textures.head(); e; e = e->next) { DrawSprite(e->data, _position.x + _offset.x, _position.y + _offset.y + font.Height * i++, 1024.0f, font.Height + 18.0f); } + ClearTextures(); } void LoadSettings(LPCSTR profilePath, LPCSTR sectionName, int defaultX, int defaultY, const SWRFONTDESC &font) { @@ -215,4 +216,4 @@ void OnDestruct(void *_this, int _, int dyn) { void LoadSettings(LPCSTR profilePath, LPCSTR section) { self.LoadSettings(profilePath, section); } -} // namespace text \ No newline at end of file +} // namespace text