summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}