mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
ttmlrender: Fix potential resource leak identified by coverity
Fixes CID #1405133.
This commit is contained in:
parent
0a4717ea20
commit
9e3b63e109
1 changed files with 2 additions and 0 deletions
|
@ -1917,6 +1917,8 @@ gst_ttml_render_split_block (UnifiedBlock * block, GPtrArray * char_ranges)
|
|||
|
||||
if (gst_ttml_render_unified_block_element_count (clone) > 0)
|
||||
g_ptr_array_add (ret, clone);
|
||||
else
|
||||
gst_ttml_render_unified_block_free (clone);
|
||||
}
|
||||
|
||||
if (ret->len == 0) {
|
||||
|
|
Loading…
Reference in a new issue