Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added missing call to SDL_stack_free().
Browse files Browse the repository at this point in the history
On Windows this is needed because SDL_stack_alloc() wraps SDL_malloc().
  • Loading branch information
philippwiesemann committed Aug 10, 2013
1 parent 31586a4 commit ebbf926
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/windows/SDL_windowsevents.c
Expand Up @@ -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);
Expand Down

0 comments on commit ebbf926

Please sign in to comment.