mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst/level/gstlevel.c: Fix memleak. Fixes #326612
Original commit message from CVS: 2006-01-13 Thomas Vander Stichele <thomas at apestaart dot org> patch by: Mike Smith * gst/level/gstlevel.c: (gst_level_message_new), (gst_level_message_append_channel): Fix memleak. Fixes #326612
This commit is contained in:
parent
013f1dcab2
commit
78e58c2431
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2006-01-13 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
patch by: Mike Smith
|
||||
|
||||
* gst/level/gstlevel.c: (gst_level_message_new),
|
||||
(gst_level_message_append_channel):
|
||||
Fix memleak. Fixes #326612
|
||||
|
||||
2006-01-11 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* configure.ac:
|
||||
|
|
|
@ -390,6 +390,8 @@ gst_level_message_new (GstLevel * l, GstClockTime endtime)
|
|||
gst_structure_set_value (s, "peak", &v);
|
||||
gst_structure_set_value (s, "decay", &v);
|
||||
|
||||
g_value_unset (&v);
|
||||
|
||||
return gst_message_new_element (GST_OBJECT (l), s);
|
||||
}
|
||||
|
||||
|
@ -416,6 +418,8 @@ gst_level_message_append_channel (GstMessage * m, gdouble rms, gdouble peak,
|
|||
l = (GValue *) gst_structure_get_value (s, "decay");
|
||||
g_value_set_double (&v, decay);
|
||||
gst_value_list_append_value (l, &v); /* copies by value */
|
||||
|
||||
g_value_unset (&v);
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
Loading…
Reference in a new issue