Skip to content

Commit

Permalink
X11: Fixed memory leak when initializing multiple screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Dec 5, 2015
1 parent 4abb732 commit 32147ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/x11/SDL_x11modes.c
Expand Up @@ -491,11 +491,11 @@ X11_InitModes_XRandR(_THIS)
display.driverdata = displaydata;
SDL_AddVideoDisplay(&display);
}

X11_XRRFreeScreenResources(res);
}
}

X11_XRRFreeScreenResources(res);

if (_this->num_displays == 0) {
return SDL_SetError("No available displays");
}
Expand Down

0 comments on commit 32147ba

Please sign in to comment.