summaryrefslogtreecommitdiff
path: root/gst/inter
diff options
context:
space:
mode:
authorTim Ansell <gnome at mithis.com>2013-02-07 11:31:12 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2013-02-07 11:31:12 +0000
commit12255ff6600f62b598203364c1905dae03284537 (patch)
treea5bfad05f596c37fea9f6d29580561860864fd7e /gst/inter
parent998cfde158f9fc6d6f6f4df8a04b22a691bbdf97 (diff)
downloadgstreamer-plugins-bad-12255ff6600f62b598203364c1905dae03284537.tar.gz
inter: fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=693300
Diffstat (limited to 'gst/inter')
-rw-r--r--gst/inter/gstintertest.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gst/inter/gstintertest.c b/gst/inter/gstintertest.c
index 8b22477f9..243e03642 100644
--- a/gst/inter/gstintertest.c
+++ b/gst/inter/gstintertest.c
@@ -108,6 +108,7 @@ main (int argc, char *argv[])
intertest2->main_loop = main_loop;
g_main_loop_run (main_loop);
+ g_main_loop_unref (main_loop);
exit (0);
}
@@ -201,7 +202,7 @@ gst_inter_test_create_pipeline_vts (GstInterTest * intertest)
g_print ("pipeline: %s\n", pipe_desc->str);
pipeline = (GstElement *) gst_parse_launch (pipe_desc->str, &error);
- g_string_free (pipe_desc, FALSE);
+ g_string_free (pipe_desc, TRUE);
if (error) {
g_print ("pipeline parsing error: %s\n", error->message);
@@ -238,7 +239,7 @@ gst_inter_test_create_pipeline_server (GstInterTest * intertest)
g_print ("pipeline: %s\n", pipe_desc->str);
pipeline = (GstElement *) gst_parse_launch (pipe_desc->str, &error);
- g_string_free (pipe_desc, FALSE);
+ g_string_free (pipe_desc, TRUE);
if (error) {
g_print ("pipeline parsing error: %s\n", error->message);
@@ -359,6 +360,8 @@ gst_inter_test_handle_message (GstBus * bus, GstMessage * message,
gst_message_parse_error (message, &error, &debug);
gst_inter_test_handle_error (intertest, error, debug);
+ g_error_free (error);
+ g_free (debug);
}
break;
case GST_MESSAGE_WARNING:
@@ -368,6 +371,8 @@ gst_inter_test_handle_message (GstBus * bus, GstMessage * message,
gst_message_parse_warning (message, &error, &debug);
gst_inter_test_handle_warning (intertest, error, debug);
+ g_error_free (error);
+ g_free (debug);
}
break;
case GST_MESSAGE_INFO:
@@ -377,6 +382,8 @@ gst_inter_test_handle_message (GstBus * bus, GstMessage * message,
gst_message_parse_info (message, &error, &debug);
gst_inter_test_handle_info (intertest, error, debug);
+ g_error_free (error);
+ g_free (debug);
}
break;
case GST_MESSAGE_TAG: