[tracker] Plug leaks in MSOffice extractor.



commit 88e99dda928353906a5232bde3188b0adf2c9961
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jun 29 16:11:55 2010 +0200

    Plug leaks in MSOffice extractor.

 src/tracker-extract/tracker-extract-msoffice.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-msoffice.c b/src/tracker-extract/tracker-extract-msoffice.c
index 2df154a..1d16705 100644
--- a/src/tracker-extract/tracker-extract-msoffice.c
+++ b/src/tracker-extract/tracker-extract-msoffice.c
@@ -444,7 +444,7 @@ msoffice_convert_and_normalize_chunk (guint8    *buffer,
 
 		/* Update accumulated UTF-8 bytes read */
 		*bytes_remaining -= len_to_validate;
-
+		g_free (converted_text);
 	} else {
 		g_warning ("Couldn't convert %" G_GSIZE_FORMAT " bytes from %s to UTF-8: %s",
 		           chunk_size,
@@ -1686,6 +1686,7 @@ extract_msoffice (const gchar          *uri,
 	}
 
 	g_object_unref (infile);
+	g_object_unref (file_info);
 	gsf_shutdown ();
 }
 



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