mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
flacparse: fix possible memory leak
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
This commit is contained in:
parent
b26bbae695
commit
e44ce40455
1 changed files with 4 additions and 0 deletions
|
@ -366,6 +366,10 @@ gst_flac_parse_stop (GstBaseParse * parse)
|
||||||
gst_toc_unref (flacparse->toc);
|
gst_toc_unref (flacparse->toc);
|
||||||
flacparse->toc = NULL;
|
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_foreach (flacparse->headers, (GFunc) gst_mini_object_unref, NULL);
|
||||||
g_list_free (flacparse->headers);
|
g_list_free (flacparse->headers);
|
||||||
|
|
Loading…
Reference in a new issue