mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
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.
This commit is contained in:
parent
4be1b4a30a
commit
73f8c763e6
2 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2008-04-21 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
Patch by: Olivier Crete <tester at tester dot ca>
|
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:
|
case GST_MESSAGE_TAG:
|
||||||
{
|
{
|
||||||
GstTagList *tag_list;
|
GstTagList *tag_list;
|
||||||
gchar *fpr;
|
gchar *fpr, *p;
|
||||||
|
|
||||||
gst_message_parse_tag (message, &tag_list);
|
gst_message_parse_tag (message, &tag_list);
|
||||||
|
|
||||||
fail_unless (gst_tag_list_get_string (tag_list, "ofa-fingerprint", &fpr));
|
fail_unless (gst_tag_list_get_string (tag_list, "ofa-fingerprint", &fpr));
|
||||||
|
|
||||||
while (*fpr) {
|
p = fpr;
|
||||||
fail_unless (g_ascii_isalnum (*fpr) || *fpr == '=' || *fpr == '+'
|
while (*p) {
|
||||||
|| *fpr == '/');
|
fail_unless (g_ascii_isalnum (*p) || *p == '=' || *p == '+'
|
||||||
fpr++;
|
|| *p == '/');
|
||||||
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free (fpr);
|
||||||
|
gst_tag_list_free (tag_list);
|
||||||
|
|
||||||
found_fingerprint = TRUE;
|
found_fingerprint = TRUE;
|
||||||
|
|
||||||
g_main_loop_quit (loop);
|
g_main_loop_quit (loop);
|
||||||
|
|
Loading…
Reference in a new issue