mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
stream: Fix leaked joined_bin
There is no need to keep a strong ref on it, and _leave_bin() was setting it to NULL before calling g_clear_object() so it was leaked. https://bugzilla.gnome.org/show_bug.cgi?id=766612
This commit is contained in:
parent
d33eca6156
commit
f90ab92547
2 changed files with 2 additions and 3 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit f49c55ecd35a7436194d28297f6d6f20eb6a66fa
|
||||
Subproject commit 6f2d2093e84cc0eb99b634fa281822ebb9507285
|
|
@ -2768,7 +2768,7 @@ gst_rtsp_stream_join_bin (GstRTSPStream * stream, GstBin * bin,
|
|||
(GCallback) caps_notify, stream);
|
||||
}
|
||||
|
||||
priv->joined_bin = gst_object_ref (bin);
|
||||
priv->joined_bin = bin;
|
||||
g_mutex_unlock (&priv->lock);
|
||||
|
||||
return TRUE;
|
||||
|
@ -2920,7 +2920,6 @@ gst_rtsp_stream_leave_bin (GstRTSPStream * stream, GstBin * bin,
|
|||
gst_rtsp_address_free (priv->server_addr_v6);
|
||||
priv->server_addr_v6 = NULL;
|
||||
|
||||
g_clear_object (&priv->joined_bin);
|
||||
g_mutex_unlock (&priv->lock);
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue