diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/lightmediascanner.cpp | 6 | ||||
-rw-r--r-- | app/lightmediascanner.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/app/lightmediascanner.cpp b/app/lightmediascanner.cpp index c17e0dc..7081f50 100644 --- a/app/lightmediascanner.cpp +++ b/app/lightmediascanner.cpp @@ -31,6 +31,12 @@ LightMediaScanner::LightMediaScanner(const QString& path) } } +LightMediaScanner::~LightMediaScanner() +{ + lms.close(); + QSqlDatabase::removeDatabase(lms.connectionName()); +} + bool LightMediaScanner::next(QString& item) { if (!query.next()) diff --git a/app/lightmediascanner.h b/app/lightmediascanner.h index c1c688b..4323457 100644 --- a/app/lightmediascanner.h +++ b/app/lightmediascanner.h @@ -30,6 +30,7 @@ class LightMediaScanner { public: LightMediaScanner(const QString& path); + ~LightMediaScanner(); bool next(QString& item); static QVariantList processLightMediaScanner(); private: |