mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
gst/gstquery.c: Fix leaking GValues in queries, as shown by valgrind/testsuite.
Original commit message from CVS: * gst/gstquery.c: (gst_query_set_formats), (gst_query_set_formatsv): Fix leaking GValues in queries, as shown by valgrind/testsuite.
This commit is contained in:
parent
26bb3efc1a
commit
add30e0328
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-04-05 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* gst/gstquery.c: (gst_query_set_formats),
|
||||
(gst_query_set_formatsv):
|
||||
Fix leaking GValues in queries, as shown by valgrind/testsuite.
|
||||
|
||||
2006-04-05 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* tests/check/generic/sinks.c: (GST_START_TEST):
|
||||
|
|
|
@ -884,6 +884,9 @@ gst_query_set_formats (GstQuery * query, gint n_formats, ...)
|
|||
|
||||
structure = gst_query_get_structure (query);
|
||||
gst_structure_set_value (structure, "formats", &list);
|
||||
|
||||
g_value_unset (&list);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -912,6 +915,8 @@ gst_query_set_formatsv (GstQuery * query, gint n_formats, GstFormat * formats)
|
|||
}
|
||||
structure = gst_query_get_structure (query);
|
||||
gst_structure_set_value (structure, "formats", &list);
|
||||
|
||||
g_value_unset (&list);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue