Added missing call to SDL_stack_free().
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 10 Aug 2013 23:21:06 +0200
changeset 7631 9fcda7425ccc
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
--- a/src/video/windows/SDL_windowsevents.c	Sat Aug 10 23:14:20 2013 +0200
+++ b/src/video/windows/SDL_windowsevents.c	Sat Aug 10 23:21:06 2013 +0200
@@ -689,6 +689,9 @@
 
                 if (!GetClientRect(hwnd, &rect) ||
                     (rect.right == rect.left && rect.bottom == rect.top)) {
+                    if (inputs) {
+                        SDL_stack_free(inputs);
+                    }
                     break;
                 }
                 ClientToScreen(hwnd, (LPPOINT) & rect);