[tracker/rss-enclosures] tracker-extract: Fixed double free in Vorbis extractor
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] tracker-extract: Fixed double free in Vorbis extractor
- Date: Mon, 3 May 2010 00:43:34 +0000 (UTC)
commit 5003bca9e614c382c7cd6e429a67d3efff899824
Author: Martyn Russell <martyn lanedo com>
Date: Thu Apr 22 16:04:25 2010 +0100
tracker-extract: Fixed double free in Vorbis extractor
src/tracker-extract/tracker-extract-vorbis.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-vorbis.c b/src/tracker-extract/tracker-extract-vorbis.c
index 84b2f5e..bdfcd38 100644
--- a/src/tracker-extract/tracker-extract-vorbis.c
+++ b/src/tracker-extract/tracker-extract-vorbis.c
@@ -35,7 +35,7 @@
#include <libtracker-extract/tracker-extract.h>
typedef struct {
- gchar *creator;
+ const gchar *creator;
} MergeData;
typedef struct {
@@ -106,7 +106,7 @@ extract_vorbis (const char *uri,
MergeData md = { 0 };
FILE *f;
gchar *filename;
- OggVorbis_File vf;
+ OggVorbis_File vf;
vorbis_comment *comment;
vorbis_info *vi;
unsigned int bitrate;
@@ -181,7 +181,6 @@ extract_vorbis (const char *uri,
tracker_sparql_builder_predicate (preupdate, "nmm:artistName");
tracker_sparql_builder_object_unvalidated (preupdate, md.creator);
tracker_sparql_builder_insert_close (preupdate);
- g_free (md.creator);
tracker_sparql_builder_predicate (metadata, "nmm:performer");
tracker_sparql_builder_object_iri (metadata, uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]