Skip to content
Snippets Groups Projects
Commit d89173af authored by Kipp Cannon's avatar Kipp Cannon
Browse files

lal_gate: fix memory leak on failed sink pad event

parent 834ecd29
No related branches found
No related tags found
No related merge requests found
......@@ -983,7 +983,12 @@ static gboolean sink_event(GstPad *pad, GstObject *parent, GstEvent *event)
* sink events are forwarded to src pad
*/
return success && gst_pad_event_default(pad, parent, event);
if(!success)
gst_event_unref(event);
else
success = gst_pad_event_default(pad, parent, event);
return success;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment