Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added missing call to SDL_stack_free().

On Windows this is needed because SDL_stack_alloc() wraps SDL_malloc().
  • Loading branch information
philippwiesemann committed Aug 10, 2013
1 parent 31586a4 commit ebbf926e7954ae34d0bbda164b461ed9988bb48a
Showing with 3 additions and 0 deletions.
  1. +3 −0 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);

0 comments on commit ebbf926

Please sign in to comment.