audiodecoder: Don't leak events
https://bugzilla.gnome.org/show_bug.cgi?id=736788
This commit is contained in:
parent
add8f02703
commit
c674a0aa64
@ -1969,8 +1969,10 @@ _flush_events (GstPad * pad, GList * events)
|
|||||||
gst_event_unref (tmp->data);
|
gst_event_unref (tmp->data);
|
||||||
} else {
|
} else {
|
||||||
gst_pad_store_sticky_event (pad, GST_EVENT_CAST (tmp->data));
|
gst_pad_store_sticky_event (pad, GST_EVENT_CAST (tmp->data));
|
||||||
|
gst_event_unref (tmp->data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
g_list_free (events);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user