Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/pdf/ev-poppler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'backend/pdf/ev-poppler.cc')
-rw-r--r--backend/pdf/ev-poppler.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 746b945..841706e 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -228,6 +228,7 @@ static void
convert_error (GError *poppler_error,
GError **error)
{
+ g_return_if_fail (poppler_error != NULL);
if (poppler_error == NULL)
return;
@@ -243,6 +244,8 @@ convert_error (GError *poppler_error,
EV_DOCUMENT_ERROR,
code,
poppler_error->message);
+
+ g_error_free (poppler_error);
} else {
g_propagate_error (error, poppler_error);
}