core: reset screenshot pointer aswell (#209)

ensure the screenshot portal is destructed before the connection is
down, otherwise it segfaults inside sdbus.
This commit is contained in:
Tom Englund 2024-04-25 17:47:35 +02:00 committed by GitHub
parent 9ace6f969c
commit 0fe840441e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -482,6 +482,7 @@ void CPortalManager::startEventLoop() {
m_sPortals.globalShortcuts.reset();
m_sPortals.screencopy.reset();
m_sPortals.screenshot.reset();
m_pConnection.reset();
pw_loop_destroy(m_sPipewire.loop);