From ebbf926e7954ae34d0bbda164b461ed9988bb48a Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 10 Aug 2013 23:21:06 +0200 Subject: [PATCH] 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index 3e79d69cd..acf8d5e51 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -689,6 +689,9 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) if (!GetClientRect(hwnd, &rect) || (rect.right == rect.left && rect.bottom == rect.top)) { + if (inputs) { + SDL_stack_free(inputs); + } break; } ClientToScreen(hwnd, (LPPOINT) & rect);