From 45c54fa277a0c8f88f5f22e4833da5187d1d9cee Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 9 Nov 2013 13:34:15 +0000 Subject: fix for a rare crash in YAPP on very fast machines git-svn-id: http://svn.miranda-ng.org/main/trunk@6830 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAPP/src/popwin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/YAPP/src') diff --git a/plugins/YAPP/src/popwin.cpp b/plugins/YAPP/src/popwin.cpp index 3112f17459..5f73b97421 100644 --- a/plugins/YAPP/src/popwin.cpp +++ b/plugins/YAPP/src/popwin.cpp @@ -171,9 +171,11 @@ void BroadcastMessage(UINT msg, WPARAM wParam, LPARAM lParam) void DeinitWindowStack() { HWNDStackNode *current = hwnd_stack_top; + hwnd_stack_top = NULL; while(current) { + HWNDStackNode *pNext = current->next; DestroyWindow(current->hwnd); - current = current->next; + current = pNext; } } -- cgit v1.2.3