When the linux-pipewire plugin is unloaded, make sure to cleanup the D-Bus proxy for the ScreenCast portal too. This effectively doesn't change anything, but it's always good to keep up with the code hygiene.
@@ -43,6 +43,8 @@ bool obs_module_load(void)
void obs_module_unload(void)
{
+ screencast_portal_unload();
+
#if PW_CHECK_VERSION(0, 3, 49)
pw_deinit();
#endif
@@ -880,3 +880,8 @@ void screencast_portal_load(void)
if (window_capture_available)
obs_register_source(&screencast_portal_window_capture_info);
}
+void screencast_portal_unload(void)
+{
+ g_clear_object(&screencast_proxy);
+}
@@ -21,3 +21,4 @@
#pragma once
void screencast_portal_load(void);
+void screencast_portal_unload(void);