Commit f74a22c6 authored by Andrea Scarpino's avatar Andrea Scarpino

Fix memory leak

parent 02c0ae27
......@@ -31,6 +31,7 @@
#include <QSqlRecord>
#include <QTimer>
#include "dbmanager.h"
#include "pingaction.h"
HostsManager::HostsManager(QObject *parent) :
......@@ -128,8 +129,6 @@ quint16 HostsManager::getPoller() const
HostsSqlModel *HostsManager::recentHosts()
{
m_model = new HostsSqlModel(this);
return m_model;
}
......
......@@ -27,8 +27,9 @@
#include <QObject>
#include "dbmanager.h"
#include "hostssqlmodel.h"
class DBManager;
class QSettings;
class QTimer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment