Skip to content

Commit 7dc5b9f

Browse files
Rosalie241gonetz
authored andcommitted
Fix memory leak in GLideNUI for mupen64plus
1 parent ea698ea commit 7dc5b9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/GLideNUI/fullscreenresolutions_mupen64plus.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ void fillFullscreenResolutionsList(QStringList &_listResolutions, int &_resoluti
7676
ret = CoreVideo_ListFullscreenModes(resolutions, &resolutions_length);
7777

7878
if (ret != M64ERR_SUCCESS)
79+
{
80+
free(resolutions);
7981
return;
82+
}
8083

8184
for (int i = 0; i < resolutions_length; i++)
8285
{

0 commit comments

Comments
 (0)