diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index 8c693c06..9a886afb 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -1116,6 +1116,11 @@ MainWindow::~MainWindow() delete w; } + if ( scanPopup ) { + delete scanPopup; + scanPopup = nullptr; + } + #ifndef NO_EPWING_SUPPORT Epwing::finalize(); #endif