diff options
Diffstat (limited to 'app/lightmediascanner.cpp')
-rw-r--r-- | app/lightmediascanner.cpp | 6 |
1 files changed, 6 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()) |