mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
rsvgoverlay: fix crash due to double adapter unref
This commit is contained in:
parent
d405ea2e63
commit
e1e827d364
1 changed files with 3 additions and 2 deletions
|
@ -336,7 +336,7 @@ gst_rsvg_overlay_data_sink_event (GstPad * pad, GstEvent * event)
|
|||
GST_RSVG_UNLOCK (overlay);
|
||||
}
|
||||
|
||||
case GST_EVENT_FLUSH_START:
|
||||
case GST_EVENT_FLUSH_STOP:
|
||||
gst_adapter_clear (overlay->adapter);
|
||||
break;
|
||||
|
||||
|
@ -436,10 +436,11 @@ gst_rsvg_overlay_stop (GstBaseTransform * btrans)
|
|||
|
||||
if (overlay->handle) {
|
||||
g_object_unref (overlay->handle);
|
||||
g_object_unref (overlay->adapter);
|
||||
overlay->handle = NULL;
|
||||
}
|
||||
|
||||
gst_adapter_clear (overlay->adapter);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue