Skip to content
Commit 8c3c27da authored by Alexander Kandaurov's avatar Alexander Kandaurov Committed by Méven Car
Browse files

activities: Close the database connection to prevent file descriptor leak

Summary: The connection to the database doesn't get closed, which leads to a leakage of file descriptors to kactivities database files, eventually reaching the open file limit. Also, sometimes warnings about duplicate connections may appear in the console. This patch fixes this by closing and removing the connection.

Test Plan:
  # Right-click a file in Dolphin and hover the Activities menu. Do it several times.
  # Check the output of
```
ls -l /proc/`pidof dolphin`/fd
```
for open descriptors to ~/.local/share/kactivitymanagerd/resources/database{,-wal}.

Reviewers: ivan, meven

Reviewed By: meven

Subscribers: meven, kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Differential Revision: https://phabricator.kde.org/D28739
parent 3a759885
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment