diff --git a/plugins/feature/skymap/webserver.cpp b/plugins/feature/skymap/webserver.cpp index 23dc85e7b..50403fb50 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 da3e034b3..292078e35 100644 --- a/plugins/feature/skymap/webserver.h +++ b/plugins/feature/skymap/webserver.h @@ -64,6 +64,7 @@ private: 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);