curl: fixed some memory leaks in the plugin and the unit tests

https://bugzilla.gnome.org/show_bug.cgi?id=681117
https://bugzilla.gnome.org/show_bug.cgi?id=681115
This commit is contained in:
Patricia Muscalu 2012-08-03 11:31:00 +02:00 committed by Tim-Philipp Müller
parent 10ba44c811
commit a7037cd0e3
3 changed files with 6 additions and 2 deletions

View file

@ -377,7 +377,8 @@ gst_curl_base_sink_event (GstBaseSink * bsink, GstEvent * event)
default:
break;
}
return TRUE;
return GST_BASE_SINK_CLASS (parent_class)->event (bsink, event);
}
static gboolean

View file

@ -203,7 +203,8 @@ gst_curl_smtp_sink_event (GstBaseSink * bsink, GstEvent * event)
default:
break;
}
return TRUE;
return GST_BASE_SINK_CLASS (parent_class)->event (bsink, event);
}
static void

View file

@ -384,6 +384,7 @@ GST_START_TEST (test_create_dirs)
g_free (sub_sub_dir);
g_free (sub_dir);
g_free (tmp_dir);
g_free (location);
}
GST_END_TEST;
@ -413,6 +414,7 @@ GST_START_TEST (test_missing_path)
g_free (res_location);
g_free (res_file_name);
g_free (file_name);
/* start playing */
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);