diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2008-04-24 08:49:39 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2008-04-24 08:49:39 (GMT) |
commit | 0c59b99bc6ad737227a6c684105810b0e04294f5 (patch) | |
tree | 2224927f36071ced6227b6fcc2999981fbe6b330 /libdocument/ev-document-factory.c | |
parent | 86ad3e544e48530873357a1c112669b734ab988a (diff) |
Fix memory leak.
2008-04-24 Carlos Garcia Campos <carlosgc@gnome.org>
* libdocument/ev-document-factory.c: (get_document_from_uri):
Fix memory leak.
svn path=/trunk/; revision=3022
Diffstat (limited to 'libdocument/ev-document-factory.c')
-rw-r--r-- | libdocument/ev-document-factory.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libdocument/ev-document-factory.c b/libdocument/ev-document-factory.c index 328ff74..64eaaba 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; |