Added missing call to SDL_stack_free().

On Windows this is needed because SDL_stack_alloc() wraps SDL_malloc().
This commit is contained in:
Philipp Wiesemann 2013-08-10 23:21:06 +02:00
parent ba31f59f54
commit 286dc2e1dc

View file

@ -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);