mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
rtsp-stream: Plug memory leak
Attaching a GSource to a context will increase the refcount. The idle source will never be free'd since the initial reference is never dropped.
This commit is contained in:
parent
2065298d6d
commit
1c4d3b36fb
1 changed files with 1 additions and 0 deletions
|
@ -4400,6 +4400,7 @@ on_message_sent (gpointer user_data)
|
|||
g_source_set_callback (idle_src, (GSourceFunc) cb_send_tcp_message,
|
||||
g_object_ref (stream), g_object_unref);
|
||||
g_source_attach (idle_src, priv->watch_context);
|
||||
g_source_unref (idle_src);
|
||||
} else {
|
||||
/* appsink is running this callback */
|
||||
send_tcp_message (stream, idx);
|
||||
|
|
Loading…
Reference in a new issue