X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-document-factory.c;h=64eaabaa25d52ac37487db5cf3367ab05c6dbca9;hb=f343927df4325959193353c52cff1ea4b20b2286;hp=328ff74326083b7d2e6e6448b2b9fb1a846edb8e;hpb=86ad3e544e48530873357a1c112669b734ab988a;p=evince.git diff --git a/libdocument/ev-document-factory.c b/libdocument/ev-document-factory.c index 328ff743..64eaabaa 100644 --- a/libdocument/ev-document-factory.c +++ b/libdocument/ev-document-factory.c @@ -184,12 +184,15 @@ get_document_from_uri (const char *uri, #endif /* ENABLE_PIXBUF */ if (document == NULL) { + gchar *mime_desc; + + mime_desc = g_content_type_get_description (mime_type); g_set_error (error, EV_DOCUMENT_ERROR, 0, _("File type %s (%s) is not supported"), - g_content_type_get_description (mime_type), - mime_type); + mime_desc, mime_type); + g_free (mime_desc); g_free (mime_type); return NULL;