Added missing call to SDL_stack_free().
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 10 Aug 2013 23:21:06 +0200
changeset 76319fcda7425ccc
parent 7630 c711a2f14814
child 7632 d6a8fa507a45
Added missing call to SDL_stack_free().
On Windows this is needed because SDL_stack_alloc() wraps SDL_malloc().
src/video/windows/SDL_windowsevents.c
     1.1 --- a/src/video/windows/SDL_windowsevents.c	Sat Aug 10 23:14:20 2013 +0200
     1.2 +++ b/src/video/windows/SDL_windowsevents.c	Sat Aug 10 23:21:06 2013 +0200
     1.3 @@ -689,6 +689,9 @@
     1.4  
     1.5                  if (!GetClientRect(hwnd, &rect) ||
     1.6                      (rect.right == rect.left && rect.bottom == rect.top)) {
     1.7 +                    if (inputs) {
     1.8 +                        SDL_stack_free(inputs);
     1.9 +                    }
    1.10                      break;
    1.11                  }
    1.12                  ClientToScreen(hwnd, (LPPOINT) & rect);