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



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]