From: Mark Nauwelaerts Date: Thu, 6 Sep 2012 13:04:33 +0000 (+0200) Subject: tests: playbin: do not leak uri strings X-Git-Tag: RELEASE-0.11.94~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3dd7e1f3c4a5216863118dd718f8841ae6eb5787;p=platform%2Fupstream%2Fgst-plugins-base.git tests: playbin: do not leak uri strings --- diff --git a/tests/check/elements/playbin.c b/tests/check/elements/playbin.c index 26cf665..f0541b2 100644 --- a/tests/check/elements/playbin.c +++ b/tests/check/elements/playbin.c @@ -55,6 +55,7 @@ GST_START_TEST (test_uri) g_object_get (playbin, "uri", &uri, NULL); fail_unless_equals_string (uri, "redvideo://"); + g_free (uri); g_object_get (playbin, "current-uri", &uri, NULL); fail_unless_equals_string (uri, NULL); @@ -68,6 +69,7 @@ GST_START_TEST (test_uri) fail_unless_equals_string (uri, NULL); g_object_get (playbin, "current-uri", &uri, NULL); fail_unless_equals_string (uri, "redvideo://"); + g_free (uri); gst_element_set_state (playbin, GST_STATE_NULL); gst_object_unref (playbin);