Commit 3dd7e1f3 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

tests: playbin: do not leak uri strings

parent 782adaf3
...@@ -55,6 +55,7 @@ GST_START_TEST (test_uri) ...@@ -55,6 +55,7 @@ GST_START_TEST (test_uri)
g_object_get (playbin, "uri", &uri, NULL); g_object_get (playbin, "uri", &uri, NULL);
fail_unless_equals_string (uri, "redvideo://"); fail_unless_equals_string (uri, "redvideo://");
g_free (uri);
g_object_get (playbin, "current-uri", &uri, NULL); g_object_get (playbin, "current-uri", &uri, NULL);
fail_unless_equals_string (uri, NULL); fail_unless_equals_string (uri, NULL);
...@@ -68,6 +69,7 @@ GST_START_TEST (test_uri) ...@@ -68,6 +69,7 @@ GST_START_TEST (test_uri)
fail_unless_equals_string (uri, NULL); fail_unless_equals_string (uri, NULL);
g_object_get (playbin, "current-uri", &uri, NULL); g_object_get (playbin, "current-uri", &uri, NULL);
fail_unless_equals_string (uri, "redvideo://"); fail_unless_equals_string (uri, "redvideo://");
g_free (uri);
gst_element_set_state (playbin, GST_STATE_NULL); gst_element_set_state (playbin, GST_STATE_NULL);
gst_object_unref (playbin); gst_object_unref (playbin);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment