diff --git a/YACReaderLibrary/server/yacreader_http_session.cpp b/YACReaderLibrary/server/yacreader_http_session.cpp index 22049735..24ad65d7 100644 --- a/YACReaderLibrary/server/yacreader_http_session.cpp +++ b/YACReaderLibrary/server/yacreader_http_session.cpp @@ -6,6 +6,15 @@ YACReaderHttpSession::YACReaderHttpSession(QObject *parent) } +YACReaderHttpSession::~YACReaderHttpSession() +{ + if(comic != nullptr) + delete comic; + + if(remoteComic != nullptr) + delete remoteComic; +} + bool YACReaderHttpSession::isComicOnDevice(const QString & hash) { return comicsOnDevice.contains(hash); diff --git a/YACReaderLibrary/server/yacreader_http_session.h b/YACReaderLibrary/server/yacreader_http_session.h index cc6a3131..7b1b677a 100644 --- a/YACReaderLibrary/server/yacreader_http_session.h +++ b/YACReaderLibrary/server/yacreader_http_session.h @@ -12,6 +12,7 @@ class YACReaderHttpSession : public QObject Q_OBJECT public: explicit YACReaderHttpSession(QObject *parent = 0); + ~YACReaderHttpSession(); void setComicsOnDevice(const QSet & set); void setComicOnDevice(const QString & hash);