]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-document-factory.c
Fixes bug #542924. Makes enums static to fix Solaris build.
[evince.git] / libdocument / ev-document-factory.c
index 328ff74326083b7d2e6e6448b2b9fb1a846edb8e..64eaabaa25d52ac37487db5cf3367ab05c6dbca9 100644 (file)
@@ -184,12 +184,15 @@ get_document_from_uri (const char        *uri,
 #endif /* ENABLE_PIXBUF */
 
        if (document == NULL) {
 #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_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;
                g_free (mime_type);
 
                return NULL;