Skip to content

Commit

Permalink
core: reset screenshot pointer aswell (#209)
Browse files Browse the repository at this point in the history
ensure the screenshot portal is destructed before the connection is
down, otherwise it segfaults inside sdbus.
  • Loading branch information
gulafaran committed Apr 25, 2024
1 parent 9ace6f9 commit 0fe8404
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/PortalManager.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 0fe8404

Please sign in to comment.