summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-11-09 13:34:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-11-09 13:34:15 +0000
commit45c54fa277a0c8f88f5f22e4833da5187d1d9cee (patch)
tree777d19a6cc526c9aafb6946e9253092e467a6b6d
parent401f40b1445e66a8b41abf69cfa086550a3ec27c (diff)
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
-rw-r--r--plugins/YAPP/src/popwin.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}
}