projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b26bbae
)
flacparse: fix possible memory leak
author
Vineeth TM
<vineeth.tm@samsung.com>
Tue, 23 Jun 2015 08:11:57 +0000
(17:11 +0900)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 23 Jun 2015 08:17:53 +0000
(10:17 +0200)
when buffer is stored to seektable, and stop gets called due to
corrupt flac file, then the seektable is not being released
https://bugzilla.gnome.org/show_bug.cgi?id=751364
gst/audioparsers/gstflacparse.c
patch
|
blob
|
history
diff --git
a/gst/audioparsers/gstflacparse.c
b/gst/audioparsers/gstflacparse.c
index
93ff7bd
..
154e133
100644
(file)
--- a/
gst/audioparsers/gstflacparse.c
+++ b/
gst/audioparsers/gstflacparse.c
@@
-366,6
+366,10
@@
gst_flac_parse_stop (GstBaseParse * parse)
gst_toc_unref (flacparse->toc);
flacparse->toc = NULL;
}
+ if (flacparse->seektable) {
+ gst_buffer_unref (flacparse->seektable);
+ flacparse->seektable = NULL;
+ }
g_list_foreach (flacparse->headers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (flacparse->headers);