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:
2a2c9f8
)
avviddec: fix memory leak
author
Luis de Bethencourt
<luis@debethencourt.com>
Fri, 28 Aug 2015 14:15:39 +0000
(15:15 +0100)
committer
Luis de Bethencourt
<luisbg@osg.samsung.com>
Tue, 29 Sep 2015 15:44:47 +0000
(16:44 +0100)
Free config before overwriting.
CID #1320708
ext/libav/gstavviddec.c
patch
|
blob
|
history
diff --git
a/ext/libav/gstavviddec.c
b/ext/libav/gstavviddec.c
index
c6c0d23
..
d9344fa
100644
(file)
--- a/
ext/libav/gstavviddec.c
+++ b/
ext/libav/gstavviddec.c
@@
-1889,6
+1889,7
@@
gst_ffmpegviddec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
if (!working_pool) {
gst_object_unref (pool);
pool = gst_video_buffer_pool_new ();
+ gst_structure_free (config);
config = gst_buffer_pool_get_config (pool);
gst_buffer_pool_config_set_params (config, state->caps, size, min, max);
gst_buffer_pool_config_set_allocator (config, NULL, ¶ms);