From: Marco Pesenti Gritti Date: Fri, 8 Jul 2005 16:21:14 +0000 (+0000) Subject: Actually return NULL for types we dont support X-Git-Tag: EVINCE_0_3_3~130 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=bfee37f234243b5fe70b9d0db59a29705d112eac;p=evince.git Actually return NULL for types we dont support 2005-07-08 Marco Pesenti Gritti * properties/ev-properties-main.c: (ev_properties_get_pages): Actually return NULL for types we dont support --- diff --git a/ChangeLog b/ChangeLog index b4e2c382..4cf8b64b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-08 Marco Pesenti Gritti + + * properties/ev-properties-main.c: (ev_properties_get_pages): + + Actually return NULL for types we dont support + 2005-07-08 Christian Persch * po/POTFILES.in: diff --git a/properties/ev-properties-main.c b/properties/ev-properties-main.c index 64f5707b..c92a8042 100644 --- a/properties/ev-properties-main.c +++ b/properties/ev-properties-main.c @@ -96,12 +96,14 @@ ev_properties_get_pages (NautilusPropertyPageProvider *provider, goto end; file = files->data; - /* okay, make the page */ mime = nautilus_file_info_get_mime_type (file); document = ev_document_factory_get_document (mime); g_free (mime); + if (document == NULL) + goto end; + uri = nautilus_file_info_get_uri (file); if (!ev_document_load (document, uri, &error)) { g_error_free (error);