diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-04-21 21:52:30 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-04-21 21:52:30 +0000 |
commit | 73f8c763e68473aa0af01b39779d738637b3739f (patch) | |
tree | b2a7716429bc1f27f993de6b207b66ac6c5e93b8 /tests/check/elements | |
parent | 4be1b4a30a383231448c727c6413495cfdbcb5b6 (diff) | |
download | gst-plugins-bad-73f8c763e68473aa0af01b39779d738637b3739f.tar.gz gst-plugins-bad-73f8c763e68473aa0af01b39779d738637b3739f.tar.bz2 gst-plugins-bad-73f8c763e68473aa0af01b39779d738637b3739f.zip |
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.
Diffstat (limited to 'tests/check/elements')
-rw-r--r-- | tests/check/elements/ofa.c | 14 |
1 files changed, 9 insertions, 5 deletions
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); |