Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/properties/ev-properties-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'properties/ev-properties-main.c')
-rw-r--r--properties/ev-properties-main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/properties/ev-properties-main.c b/properties/ev-properties-main.c
index c92a804..2e566d5 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"));