tests: typefindfunctions: fix error leaks

https://bugzilla.gnome.org/show_bug.cgi?id=757008
This commit is contained in:
Eunhae Choi 2015-10-23 17:25:50 +09:00 committed by Sebastian Dröge
parent ab6b536a66
commit 04eeaef7a4

View file

@ -149,6 +149,7 @@ typefind_test_file (const gchar * filename)
GST_LOG ("reading file '%s'", path);
if (!g_file_get_contents (path, &data, &data_len, &err)) {
g_error ("error loading test file: %s", err->message);
g_clear_error (&err);
}
buf = gst_buffer_new ();