Fixing valgrind errors.

One of the error was the result of an unitended recursive call to X11_GL_LoadLibrary which was also fixed.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402739
This commit is contained in:
Bob Pendleton 2008-03-06 17:08:10 +00:00
parent e6d4abc63e
commit 011c8c6dc3
3 changed files with 29 additions and 27 deletions

View file

@ -397,8 +397,8 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
}
if (SDL_VideoWindow) {
SDL_GetWindowPosition(SDL_VideoWindow, &window_x, &window_y);
SDL_DestroyWindow(SDL_VideoWindow);
}
SDL_DestroyWindow(SDL_VideoWindow);
/* Set up the event filter */
if (!SDL_GetEventFilter(NULL, NULL)) {