From 42908f046513550673aeb2f61edc04b2d6c63302 Mon Sep 17 00:00:00 2001 From: Piotr Piastucki Date: Sat, 26 Sep 2015 14:49:58 +0000 Subject: core/mir_app: Fixed double free of same icon in Window_FreeIcon_IcoLib git-svn-id: http://svn.miranda-ng.org/main/trunk@15452 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_app/src/skinicons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mir_app/src/skinicons.cpp b/src/mir_app/src/skinicons.cpp index 73dae4a49b..aee92f8ec3 100644 --- a/src/mir_app/src/skinicons.cpp +++ b/src/mir_app/src/skinicons.cpp @@ -202,7 +202,7 @@ MIR_APP_DLL(void) Window_SetProtoIcon_IcoLib(HWND hWnd, const char *szProto, int MIR_APP_DLL(void) Window_FreeIcon_IcoLib(HWND hWnd) { - IcoLib_ReleaseIcon((HICON)SendMessage(hWnd, WM_SETICON, ICON_BIG, 0)); + IcoLib_ReleaseIcon((HICON)SendMessage(hWnd, WM_SETICON, ICON_BIG, 0), true); IcoLib_ReleaseIcon((HICON)SendMessage(hWnd, WM_SETICON, ICON_SMALL, 0)); } -- cgit v1.2.3