Application crash.

--HG--
branch : feature
This commit is contained in:
dismine 2014-12-17 14:57:17 +02:00
parent d6c78ca1a1
commit 0e6188d847
2 changed files with 4 additions and 0 deletions

View File

@ -516,6 +516,7 @@ void VApplication::ClearOldLogs() const
qCDebug(vApp) << "Failed to lock"<<info.absoluteFilePath(); qCDebug(vApp) << "Failed to lock"<<info.absoluteFilePath();
} }
delete lock; delete lock;
lock = nullptr;
} }
} }
else else

View File

@ -1454,6 +1454,8 @@ void MainWindow::Clear()
qCDebug(vMainWindow)<<"Reseting main window"; qCDebug(vMainWindow)<<"Reseting main window";
delete lock; // Unlock pattern file delete lock; // Unlock pattern file
lock = nullptr;
ui->actionDetails->setChecked(false); ui->actionDetails->setChecked(false);
ui->actionDetails->setEnabled(false); ui->actionDetails->setEnabled(false);
ui->actionDraw->setChecked(true); ui->actionDraw->setChecked(true);
@ -2453,6 +2455,7 @@ QStringList MainWindow::GetUnlokedRestoreFileList() const
restoreFiles.append(files.at(i)); restoreFiles.append(files.at(i));
} }
delete lock; delete lock;
lock = nullptr;
} }
// Clearing list after filtering // Clearing list after filtering