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:
Michael Smith 2006-04-05 13:18:29 +00:00
parent 26bb3efc1a
commit add30e0328
2 changed files with 11 additions and 0 deletions

View file

@ -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):

View file

@ -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);
}
/**