hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
273 stars 47 forks source link

Destroy pipewire streams when ScreenCast sessions are closed #130

Closed MikeWalrus closed 10 months ago

MikeWalrus commented 10 months ago

The current implementation never closes PipeWire streams after their sessions are closed. This PR adds a call to destroyStream to session->onDestroy.

I also made changes to destroyStream because it seems to reenter itself and cause a double free.

vaxerski commented 10 months ago

thanks!