diff --git a/tests/document-loader.c b/tests/document-loader.c index 1ad87ff..1a10869 100644 --- a/tests/document-loader.c +++ b/tests/document-loader.c @@ -122,11 +122,7 @@ test_loader (const gchar *filename, G_CALLBACK (on_document_loaded), data); - uri = g_file_get_uri (file); - - xed_document_load (document, uri, xed_encoding_get_utf8 (), 0, FALSE); - - g_free (uri); + xed_document_load (document, file, xed_encoding_get_utf8 (), 0, FALSE); while (!test_completed) { diff --git a/tests/document-saver.c b/tests/document-saver.c index 646acff..f914730 100644 --- a/tests/document-saver.c +++ b/tests/document-saver.c @@ -215,12 +215,11 @@ test_saver (const gchar *filename_or_uri, test_completed = FALSE; file = g_file_new_for_commandline_arg (filename_or_uri); - uri = g_file_get_uri (file); existed = g_file_query_exists (file, NULL); ensure_mounted (file); - xed_document_save_as (document, uri, xed_encoding_get_utf8 (), save_flags); + xed_document_save_as (document, file, xed_encoding_get_utf8 (), save_flags); while (!test_completed) { @@ -232,7 +231,6 @@ test_saver (const gchar *filename_or_uri, g_file_delete (file, NULL, NULL); } - g_free (uri); g_object_unref (file); saver_test_data_free (data);