Skip to content

Commit

Permalink
Fix memory leak in GLideNUI for mupen64plus
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jul 31, 2023
1 parent 0fee30d commit 0b52071
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GLideNUI/fullscreenresolutions_mupen64plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ static void _fillFullscreenRefreshRateList(QStringList &_listRefreshRates, int &
ret = CoreVideo_ListFullscreenRates(size, &num_rates, rates);

if (ret != M64ERR_SUCCESS)
{
free(resolutions);
return;
}

for (int i = 0; i < num_rates; i++)
{
Expand Down

0 comments on commit 0b52071

Please sign in to comment.