X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=libdocument%2Fev-document-factory.c;h=b500fdfb6dbe365a5803b5b4ad84db7260ea1b31;hb=3588349bcec38d0915a8e1f0ea3949d683c4eb8c;hp=4adec66759b3ee723f2f43b8575b902e39dcbb57;hpb=741af7a833085db5d6ac2f07c1a2f995a8c955d6;p=evince.git diff --git a/libdocument/ev-document-factory.c b/libdocument/ev-document-factory.c index 4adec667..b500fdfb 100644 --- a/libdocument/ev-document-factory.c +++ b/libdocument/ev-document-factory.c @@ -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); }