mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-06 08:18:03 +02:00
session-item: check for core before adding closure if proxy is destroyed
This commit is contained in:
parent
e481c998a4
commit
e1b85e1fe4
1 changed files with 2 additions and 1 deletions
|
|
@ -298,7 +298,8 @@ on_export_proxy_destroyed (WpProxy * proxy, gpointer data)
|
|||
WpSessionItem *self = WP_SESSION_ITEM (data);
|
||||
g_autoptr (WpCore) core = wp_proxy_get_core (proxy);
|
||||
|
||||
wp_core_idle_add_closure (core, NULL, g_cclosure_new_object (
|
||||
if (core)
|
||||
wp_core_idle_add_closure (core, NULL, g_cclosure_new_object (
|
||||
G_CALLBACK (on_export_proxy_destroyed_deferred), G_OBJECT (self)));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue