summaryrefslogtreecommitdiff
path: root/tests/examples
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-07-15 10:50:46 +0900
committerThiago Santos <thiagoss@osg.samsung.com>2015-07-14 23:31:06 -0300
commit8f81e046831b89722734e0b4f91cfc9bb3ce93c3 (patch)
treeb74628f02e17d12dc1199b181a0fd87b4dbb22be /tests/examples
parentdec3fb37239ea4ee092d8f6f1fa8510e748b0d7a (diff)
playback-test: fix tag list leak
tags are being leaked while updating the streams in playback-test https://bugzilla.gnome.org/show_bug.cgi?id=752397
Diffstat (limited to 'tests/examples')
-rw-r--r--tests/examples/playback/playback-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c
index c197da7bd..74c04e2aa 100644
--- a/tests/examples/playback/playback-test.c
+++ b/tests/examples/playback/playback-test.c
@@ -1180,6 +1180,7 @@ update_streams (PlaybackApp * app)
str = gst_tag_list_to_string (tags);
g_print ("video %d: %s\n", i, str);
g_free (str);
+ gst_tag_list_unref (tags);
}
/* find good name for the label */
name = g_strdup_printf ("video %d", i + 1);
@@ -1199,6 +1200,7 @@ update_streams (PlaybackApp * app)
str = gst_tag_list_to_string (tags);
g_print ("audio %d: %s\n", i, str);
g_free (str);
+ gst_tag_list_unref (tags);
}
/* find good name for the label */
name = g_strdup_printf ("audio %d", i + 1);
@@ -1228,6 +1230,7 @@ update_streams (PlaybackApp * app)
if (value && G_VALUE_HOLDS_STRING (value)) {
name = g_strdup_printf ("text %s", g_value_get_string (value));
}
+ gst_tag_list_unref (tags);
}
/* find good name for the label if we didn't use a tag */
if (name == NULL)