Added missing call to SDL_stack_free().
On Windows this is needed because SDL_stack_alloc() wraps SDL_malloc().
This commit is contained in:
parent
ba31f59f54
commit
286dc2e1dc
1 changed files with 3 additions and 0 deletions
|
@ -689,6 +689,9 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
||||||
if (!GetClientRect(hwnd, &rect) ||
|
if (!GetClientRect(hwnd, &rect) ||
|
||||||
(rect.right == rect.left && rect.bottom == rect.top)) {
|
(rect.right == rect.left && rect.bottom == rect.top)) {
|
||||||
|
if (inputs) {
|
||||||
|
SDL_stack_free(inputs);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ClientToScreen(hwnd, (LPPOINT) & rect);
|
ClientToScreen(hwnd, (LPPOINT) & rect);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue