Fix some minor memory leaks reported by Valgrind

This commit is contained in:
Oleg Shparber
2015-04-11 23:58:00 -07:00
parent 83b4105e04
commit a48c821a1a
4 changed files with 17 additions and 1 deletions
+7 -1
View File
@@ -91,7 +91,7 @@ MainWindow::MainWindow(Core::Application *app, QWidget *parent) :
m_settings->splitterGeometry = ui->splitter->saveState();
});
m_zealNetworkManager = new NetworkAccessManager();
m_zealNetworkManager = new NetworkAccessManager(this);
#ifdef USE_WEBENGINE
/// FIXME AngularJS workaround (zealnetworkaccessmanager.cpp)
#else
@@ -324,6 +324,12 @@ MainWindow::MainWindow(Core::Application *app, QWidget *parent) :
MainWindow::~MainWindow()
{
delete ui;
for (SearchState *state : m_tabs) {
delete state->zealSearch;
delete state->sectionsList;
delete state;
}
}
void MainWindow::openDocset(const QModelIndex &index)