Commit 5f503d74 authored by Olivier Crête's avatar Olivier Crête 👻
Browse files

test-gstreamer: fix buffer leak

parent ef6293b4
...@@ -77,6 +77,8 @@ sink_chain_list_function (GstPad * pad, GstObject * parent, ...@@ -77,6 +77,8 @@ sink_chain_list_function (GstPad * pad, GstObject * parent,
g_main_loop_quit (loop); g_main_loop_quit (loop);
} }
gst_buffer_list_unref (list);
return GST_FLOW_OK; return GST_FLOW_OK;
} }
...@@ -93,6 +95,8 @@ sink_chain_function (GstPad * pad, GstObject * parent, GstBuffer * buffer) ...@@ -93,6 +95,8 @@ sink_chain_function (GstPad * pad, GstObject * parent, GstBuffer * buffer)
g_main_loop_quit (loop); g_main_loop_quit (loop);
} }
gst_buffer_unref (buffer);
return GST_FLOW_OK; return GST_FLOW_OK;
} }
......
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