[tracker] 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-extract, pdf: If no text found, unref page before continuing
- Date: Wed, 2 Mar 2011 15:26:31 +0000 (UTC)
commit 1e633dca5fd06ff3619a71713ac5fa2c79eaa3ec
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]