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

View file

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