diff --git a/plugins/feature/skymap/webserver.cpp b/plugins/feature/skymap/webserver.cpp index 23dc85e7be..50403fb508 100644 --- a/plugins/feature/skymap/webserver.cpp +++ b/plugins/feature/skymap/webserver.cpp @@ -41,6 +41,11 @@ WebServer::WebServer(quint16 &port, QObject* parent) : m_mimeTypes.insert(".geojson", new MimeType("application/geo+json")); } +WebServer::~WebServer() +{ + qDeleteAll(m_mimeTypes); +} + void WebServer::incomingConnection(qintptr socket) { QTcpSocket* s = new QTcpSocket(this); diff --git a/plugins/feature/skymap/webserver.h b/plugins/feature/skymap/webserver.h index da3e034b3d..292078e352 100644 --- a/plugins/feature/skymap/webserver.h +++ b/plugins/feature/skymap/webserver.h @@ -64,6 +64,7 @@ class WebServer : public QTcpServer public: WebServer(quint16 &port, QObject* parent = 0); + ~WebServer(); void incomingConnection(qintptr socket) override; void addPathSubstitution(const QString &from, const QString &to); void addSubstitution(QString path, QString from, QString to);