1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00

Prevent mem leak, free sheet data

This commit is contained in:
Joshua Goins 2022-07-21 21:18:27 -04:00
parent b0aa7be1f5
commit da99c09706

View file

@ -720,6 +720,9 @@ void LauncherCore::readGameData(ProfileSettings& profile) {
for(int i = 0; i < exd.row_count; i++) { for(int i = 0; i < exd.row_count; i++) {
expansionNames.push_back(exd.row_data[i].column_data[0].string._0); 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); physis_gamedata_free(game_data);