mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 04:05:34 +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;
|
*pts = ts->pts;
|
||||||
*dts = ts->dts;
|
*dts = ts->dts;
|
||||||
*duration = ts->duration;
|
*duration = ts->duration;
|
||||||
timestamp_free (ts);
|
|
||||||
g = g->next;
|
g = g->next;
|
||||||
decoder->priv->timestamps = g_list_remove (decoder->priv->timestamps, ts);
|
decoder->priv->timestamps = g_list_remove (decoder->priv->timestamps, ts);
|
||||||
|
timestamp_free (ts);
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue