[evince] pdf: Fix critical warning for links with NULL action
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] pdf: Fix critical warning for links with NULL action
- Date: Sat, 8 Jun 2013 22:15:25 +0000 (UTC)
commit 2254c086ee8d6e735d272df32f555492e623f208
Author: Christian Persch <chpe gnome org>
Date: Sun Jun 9 00:06:46 2013 +0200
pdf: Fix critical warning for links with NULL action
backend/pdf/ev-poppler.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 883de2d..c3a983a 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1405,7 +1405,8 @@ ev_link_from_action (PdfDocument *pdf_document,
}
link = ev_link_new (action->any.title, ev_action);
- g_object_unref (ev_action);
+ if (ev_action)
+ g_object_unref (ev_action);
return link;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]