Skip to content
Permalink
Browse files

X11: Fixed memory leak when initializing multiple screens.

  • Loading branch information
philippwiesemann committed Dec 5, 2015
1 parent 4abb732 commit 32147ba780c39f6a2bb41c9ab6972cd88489986e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/video/x11/SDL_x11modes.c
@@ -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");
}

0 comments on commit 32147ba

Please sign in to comment.