From 73f8c763e68473aa0af01b39779d738637b3739f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 21 Apr 2008 21:52:30 +0000 Subject: 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. --- tests/check/elements/ofa.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'tests/check/elements') diff --git a/tests/check/elements/ofa.c b/tests/check/elements/ofa.c index d6a8ff79..28612675 100644 --- a/tests/check/elements/ofa.c +++ b/tests/check/elements/ofa.c @@ -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); -- cgit v1.2.1