summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/Events.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-08-06 15:20:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-08-06 15:20:30 +0000
commitddf8823e6c6a2d8faaf0d1616c7d986be39b5e6e (patch)
tree11a093191ebe73ae6a69399204c5acba8bdf5ee1 /plugins/PluginUpdater/src/Events.cpp
parent8b6aac48709ba9441f76afc7b79380cf99fc5189 (diff)
fix for window's closing
git-svn-id: http://svn.miranda-ng.org/main/trunk@1383 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Events.cpp')
-rw-r--r--plugins/PluginUpdater/src/Events.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/Events.cpp b/plugins/PluginUpdater/src/Events.cpp
index 5ac9d19561..84ea06be08 100644
--- a/plugins/PluginUpdater/src/Events.cpp
+++ b/plugins/PluginUpdater/src/Events.cpp
@@ -63,5 +63,8 @@ INT OnPreShutdown(WPARAM wParam, LPARAM lParam)
{
CancelWaitableTimer(Timer);
CloseHandle(Timer);
+
+ if (hwndDialog != NULL)
+ DestroyWindow(hwndDialog);
return 0;
}