[mutter] screen-cast-stream-src: Only clean up pipewire remote/core if they exist
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] screen-cast-stream-src: Only clean up pipewire remote/core if they exist
- Date: Thu, 5 Oct 2017 20:16:14 +0000 (UTC)
commit 8185373bd4d23b7090dab6e4507ecad153f07099
Author: Jonas Ådahl <jadahl gmail com>
Date: Thu Oct 5 14:16:35 2017 -0400
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
src/backends/meta-screen-cast-stream-src.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c
index e6d99d5..0343ea4 100644
--- a/src/backends/meta-screen-cast-stream-src.c
+++ b/src/backends/meta-screen-cast-stream-src.c
@@ -593,8 +593,8 @@ meta_screen_cast_stream_src_finalize (GObject *object)
meta_screen_cast_stream_src_disable (src);
g_clear_pointer (&priv->pipewire_stream, (GDestroyNotify) pw_stream_destroy);
- pw_remote_destroy (priv->pipewire_remote);
- pw_core_destroy (priv->pipewire_core);
+ g_clear_pointer (&priv->pipewire_remote, (GDestroyNotify) pw_remote_destroy);
+ g_clear_pointer (&priv->pipewire_core, (GDestroyNotify) pw_core_destroy);
g_source_destroy (&priv->pipewire_source->base);
G_OBJECT_CLASS (meta_screen_cast_stream_src_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]