Commit 1c4d3b36 authored by Linus Svensson's avatar Linus Svensson Committed by Sebastian Dröge

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.
parent 2065298d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment