Commit 73f8c763 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

tests/check/elements/ofa.c: Don't leak the tags string and tag list. Fixes bug #529283.

Original commit message from CVS:
* tests/check/elements/ofa.c: (bus_handler):
Don't leak the tags string and tag list. Fixes bug #529283.
parent 4be1b4a3
2008-04-21 Sebastian Dröge <slomo@circular-chaos.org>
* tests/check/elements/ofa.c: (bus_handler):
Don't leak the tags string and tag list. Fixes bug #529283.
2008-04-21 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: Olivier Crete <tester at tester dot ca>
......
......@@ -46,18 +46,22 @@ bus_handler (GstBus * bus, GstMessage * message, gpointer data)
case GST_MESSAGE_TAG:
{
GstTagList *tag_list;
gchar *fpr;
gchar *fpr, *p;
gst_message_parse_tag (message, &tag_list);
fail_unless (gst_tag_list_get_string (tag_list, "ofa-fingerprint", &fpr));
while (*fpr) {
fail_unless (g_ascii_isalnum (*fpr) || *fpr == '=' || *fpr == '+'
|| *fpr == '/');
fpr++;
p = fpr;
while (*p) {
fail_unless (g_ascii_isalnum (*p) || *p == '=' || *p == '+'
|| *p == '/');
p++;
}
g_free (fpr);
gst_tag_list_free (tag_list);
found_fingerprint = TRUE;
g_main_loop_quit (loop);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment