From da99c09706e1f8526e2a95694e0c76c129aa7f30 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 21 Jul 2022 21:18:27 -0400 Subject: [PATCH] Prevent mem leak, free sheet data --- launcher/core/src/launchercore.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/launcher/core/src/launchercore.cpp b/launcher/core/src/launchercore.cpp index 6446681..e691803 100755 --- a/launcher/core/src/launchercore.cpp +++ b/launcher/core/src/launchercore.cpp @@ -720,6 +720,9 @@ void LauncherCore::readGameData(ProfileSettings& profile) { for(int i = 0; i < exd.row_count; i++) { expansionNames.push_back(exd.row_data[i].column_data[0].string._0); } + + physis_gamedata_free_sheet(exd); + physis_gamedata_free_sheet_header(exh); } physis_gamedata_free(game_data);