[Bookmarks Runner] Avoid leaking FetchSqlite instances

Authored by bruns on Sep 6 2018, 3:12 AM.

Description

[Bookmarks Runner] Avoid leaking FetchSqlite instances

Summary:
The favicon and places instances are created in the prepare() call,
leaking the instance from the last invocation. Delete the old
instance in teardown().

See also T9626.

Test Plan:
run several queries in krunner
-> instances are no longer leaked

Reviewers: Frameworks, mart

Reviewed By: mart

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D16410

Details

Committed
brunsNov 14 2018, 11:57 PM
Reviewer
mart
Differential Revision
D16410: [Bookmarks Runner] Avoid leaking FetchSqlite instances
Parents
R120:145caeac1050: [Bookmarks Runner] Open database connection in the query thread
Branches
Unknown
Tags
Unknown