]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-document-factory.c
Add functions to delete temporary files created by evince in a safe way.
[evince.git] / libdocument / ev-document-factory.c
index 4adec66759b3ee723f2f43b8575b902e39dcbb57..b500fdfb6dbe365a5803b5b4ad84db7260ea1b31 100644 (file)
@@ -312,17 +312,10 @@ get_document_from_uri (const char        *uri,
 static void
 free_uncompressed_uri (gchar *uri_unc)
 {
-       gchar *filename;
-
        if (!uri_unc)
                return;
 
-       filename = g_filename_from_uri (uri_unc, NULL, NULL);
-       if (!filename)
-               return;
-
-       g_unlink (filename);
-       g_free (filename);
+       ev_tmp_uri_unlink (uri_unc);
        g_free (uri_unc);
 }