mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
videodecoder: Free data after removing it from the list
While it wouldn't have caused any failures (g_list_remove doesn't dereference the provided pointer), it does make the code cleaner. CID #1212174
This commit is contained in:
parent
dddb837d0d
commit
ec95963b1f
1 changed files with 1 additions and 1 deletions
|
@ -1660,9 +1660,9 @@ gst_video_decoder_get_timestamp_at_offset (GstVideoDecoder *
|
|||
*pts = ts->pts;
|
||||
*dts = ts->dts;
|
||||
*duration = ts->duration;
|
||||
timestamp_free (ts);
|
||||
g = g->next;
|
||||
decoder->priv->timestamps = g_list_remove (decoder->priv->timestamps, ts);
|
||||
timestamp_free (ts);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue