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



commit 4306640699f53624358ad751cbc15007c7166130
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]