mirror of
https://github.com/yawut/SDL.git
synced 2026-09-12 19:16:42 -05:00
Added missing call to SDL_stack_free().
On Windows this is needed because SDL_stack_alloc() wraps SDL_malloc().
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user