[tracker/tracker-0.10] tracker-extract, pdf: If no text found, unref page before continuing
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-extract, pdf: If no text found, unref page before continuing
- Date: Wed, 2 Mar 2011 15:33:14 +0000 (UTC)
commit 3a6cbbfb3c9d1b7b5eb315712c9791990e99437b
Author: Aleksander Morgado <aleksander lanedo com>
Date: Tue Feb 22 12:44:26 2011 +0100
tracker-extract,pdf: If no text found, unref page before continuing
Spotted by Carlos GarcÃa Campos
src/tracker-extract/tracker-extract-pdf.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.c b/src/tracker-extract/tracker-extract-pdf.c
index 928be0a..9de3b3c 100644
--- a/src/tracker-extract/tracker-extract-pdf.c
+++ b/src/tracker-extract/tracker-extract-pdf.c
@@ -207,6 +207,7 @@ extract_content (PopplerDocument *document,
text = poppler_page_get_text (page);
if (!text) {
+ g_object_unref (page);
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]