[tracker] Plug leaks in PDF extractor.



commit a214a26bed638d9352be8ca5f1d70d37d294e5f2
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jun 29 16:11:39 2010 +0200

    Plug leaks in PDF extractor.

 src/tracker-extract/tracker-extract-pdf.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.cpp b/src/tracker-extract/tracker-extract-pdf.cpp
index 2488b49..2d87baa 100644
--- a/src/tracker-extract/tracker-extract-pdf.cpp
+++ b/src/tracker-extract/tracker-extract-pdf.cpp
@@ -343,6 +343,7 @@ extract_content (PDFDoc *document,
 
 		delete gfx;
 		delete text_dev;
+		delete sel_text;
 	}
 
 	g_timer_destroy (timer);
@@ -761,6 +762,13 @@ extract_pdf (const gchar          *uri,
 		 * write what we know from Poppler.
 		 */
 		write_pdf_data (pd, metadata, keywords);
+
+		g_free (pd.keywords);
+		g_free (pd.title);
+		g_free (pd.subject);
+		g_free (pd.creation_date);
+		g_free (pd.author);
+		g_free (pd.date);
 	}
 
 	for (i = 0; i < keywords->len; i++) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]