[tracker/tracker-0.14] Avoid a double-free in the png extractor



commit b8b5c5f2688efee6eea14e6c088ccd3abc424cd8
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 25 23:51:31 2013 -0500

    Avoid a double-free in the png extractor
    
    The software member of the exif data was getting freed twice. So
    whenever you deal with a png that has this field set to a non-NULL
    value, you get a segfault.
    https://bugzilla.gnome.org/show_bug.cgi?id=660965

 src/tracker-extract/tracker-extract-png.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-png.c b/src/tracker-extract/tracker-extract-png.c
index eea147f..58d19d3 100644
--- a/src/tracker-extract/tracker-extract-png.c
+++ b/src/tracker-extract/tracker-extract-png.c
@@ -372,7 +372,6 @@ read_metadata (TrackerSparqlBuilder *preupdate,
        }
 
        /* TODO: add ontology and store this ed->software */
-       g_free (ed->software);
 
        if (md.creator) {
                gchar *uri = tracker_sparql_escape_uri_printf ("urn:contact:%s", md.creator);


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