X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=properties%2Fev-properties-main.c;h=2e566d5505763b5397f4641f27f95162088434b5;hb=65c06150e05948eb7b056b0ec5cb9c364b652cfe;hp=c92a8042e7ad17c2d6bab7e35f3a2c3d4a006818;hpb=bfee37f234243b5fe70b9d0db59a29705d112eac;p=evince.git diff --git a/properties/ev-properties-main.c b/properties/ev-properties-main.c index c92a8042..2e566d55 100644 --- a/properties/ev-properties-main.c +++ b/properties/ev-properties-main.c @@ -82,7 +82,7 @@ static GList * ev_properties_get_pages (NautilusPropertyPageProvider *provider, GList *files) { - GError *error; + GError *error = NULL; char *mime; EvDocument *document; GList *pages = NULL; @@ -106,7 +106,9 @@ ev_properties_get_pages (NautilusPropertyPageProvider *provider, uri = nautilus_file_info_get_uri (file); if (!ev_document_load (document, uri, &error)) { - g_error_free (error); + if (error) { + g_error_free (error); + } goto end; } label = gtk_label_new (_("Document"));