summaryrefslogtreecommitdiff
path: root/plugins/DbChecker/src/wizard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/DbChecker/src/wizard.cpp')
-rw-r--r--plugins/DbChecker/src/wizard.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/DbChecker/src/wizard.cpp b/plugins/DbChecker/src/wizard.cpp
index dd10b614ac..835bb9d563 100644
--- a/plugins/DbChecker/src/wizard.cpp
+++ b/plugins/DbChecker/src/wizard.cpp
@@ -128,13 +128,19 @@ INT_PTR CALLBACK WizardDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lP
break;
case WM_DESTROY:
- if (opts.hFile)
- CloseHandle(opts.hFile);
+ if (opts.dbChecker) {
+ opts.dbChecker->Destroy();
+ opts.dbChecker = NULL;
+ }
+
if (opts.hOutFile)
CloseHandle(opts.hOutFile);
+
DestroyWindow(hdlgPage);
if (hBoldFont != NULL) DeleteObject(hBoldFont);
if (hEmfHeaderLogo != NULL) DeleteEnhMetaFile(hEmfHeaderLogo);
+ if (bServiceMode)
+ PostQuitMessage(0);
break;
}
return FALSE;