screen-cast-stream-src: Only clean up pipewire remote/core if they exist
They can could fail to create, so lets deal better with that possibility. https://bugzilla.gnome.org/show_bug.cgi?id=788569
This commit is contained in:
parent
18c41aefc9
commit
8185373bd4
@ -593,8 +593,8 @@ meta_screen_cast_stream_src_finalize (GObject *object)
|
|||||||
meta_screen_cast_stream_src_disable (src);
|
meta_screen_cast_stream_src_disable (src);
|
||||||
|
|
||||||
g_clear_pointer (&priv->pipewire_stream, (GDestroyNotify) pw_stream_destroy);
|
g_clear_pointer (&priv->pipewire_stream, (GDestroyNotify) pw_stream_destroy);
|
||||||
pw_remote_destroy (priv->pipewire_remote);
|
g_clear_pointer (&priv->pipewire_remote, (GDestroyNotify) pw_remote_destroy);
|
||||||
pw_core_destroy (priv->pipewire_core);
|
g_clear_pointer (&priv->pipewire_core, (GDestroyNotify) pw_core_destroy);
|
||||||
g_source_destroy (&priv->pipewire_source->base);
|
g_source_destroy (&priv->pipewire_source->base);
|
||||||
|
|
||||||
G_OBJECT_CLASS (meta_screen_cast_stream_src_parent_class)->finalize (object);
|
G_OBJECT_CLASS (meta_screen_cast_stream_src_parent_class)->finalize (object);
|
||||||
|
Loading…
Reference in New Issue
Block a user