Commit 3fc68cf9 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

element: unref event in default_send_event in case element has no pads

Spotted by  Haakon Sporsheim.
parent 2401fe36
...@@ -1595,6 +1595,7 @@ gst_element_default_send_event (GstElement * element, GstEvent * event) ...@@ -1595,6 +1595,7 @@ gst_element_default_send_event (GstElement * element, GstEvent * event)
} else { } else {
GST_CAT_INFO (GST_CAT_ELEMENT_PADS, "can't send %s event on element %s", GST_CAT_INFO (GST_CAT_ELEMENT_PADS, "can't send %s event on element %s",
GST_EVENT_TYPE_NAME (event), GST_ELEMENT_NAME (element)); GST_EVENT_TYPE_NAME (event), GST_ELEMENT_NAME (element));
gst_event_unref (event);
} }
return result; return result;
} }
......
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