[tracker/tracker-0.10] tracker-extract, pdf: If no text found, unref page before continuing



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]