projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a4717e
)
ttmlrender: Fix potential resource leak identified by coverity
author
Chris Bass
<floobleflam@gmail.com>
Thu, 20 Apr 2017 09:22:49 +0000
(10:22 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 20 Apr 2017 09:40:32 +0000
(10:40 +0100)
Fixes CID #
1405133
.
ext/ttml/gstttmlrender.c
patch
|
blob
|
history
diff --git
a/ext/ttml/gstttmlrender.c
b/ext/ttml/gstttmlrender.c
index 6c1689454a61bfb7a6ff8c4c8d53d44acc81e704..ffa41912f524d5c84ae22c5a9e84432bc4399325 100644
(file)
--- a/
ext/ttml/gstttmlrender.c
+++ b/
ext/ttml/gstttmlrender.c
@@
-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) {