projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e914abd
)
ristsrc: rtxbin may be null in finalize
author
Nicolas Dufresne
<nicolas.dufresne@collabora.com>
Fri, 3 May 2019 20:52:02 +0000
(16:52 -0400)
committer
Nicolas Dufresne
<nicolas@ndufresne.ca>
Tue, 21 May 2019 18:49:17 +0000
(18:49 +0000)
gst/rist/gstristsrc.c
patch
|
blob
|
history
diff --git
a/gst/rist/gstristsrc.c
b/gst/rist/gstristsrc.c
index
6395d37
..
8b70787
100644
(file)
--- a/
gst/rist/gstristsrc.c
+++ b/
gst/rist/gstristsrc.c
@@
-1136,9
+1136,8
@@
gst_rist_src_finalize (GObject * object)
}
g_ptr_array_free (src->bonds, TRUE);
- if (src->jitterbuffer)
- gst_object_unref (src->jitterbuffer);
- gst_object_unref (src->rtxbin);
+ g_clear_object (&src->jitterbuffer);
+ g_clear_object (&src->rtxbin);
g_mutex_unlock (&src->bonds_lock);
g_mutex_clear (&src->bonds_lock);