Minor fixes to the test utils

This commit is contained in:
Thibault Saunier 2012-11-18 20:23:13 -03:00
parent ab9e2364c3
commit 8b7b98a871

View file

@ -64,17 +64,17 @@ gchar *
ges_test_file_uri (const gchar * filename) ges_test_file_uri (const gchar * filename)
{ {
gchar *uri; gchar *uri;
GFile *cfile, *fdir, *f_xptv; GFile *cfile, *fdir, *f;
cfile = g_file_new_for_path (__FILE__); cfile = g_file_new_for_path (__FILE__);
fdir = g_file_get_parent (cfile); fdir = g_file_get_parent (cfile);
f_xptv = g_file_get_child (fdir, filename); f = g_file_get_child (fdir, filename);
uri = g_file_get_uri (f_xptv); uri = g_file_get_uri (f);
g_object_unref (cfile); g_object_unref (cfile);
g_object_unref (fdir); g_object_unref (fdir);
g_object_unref (f_xptv); g_object_unref (f);
return uri; return uri;
} }