[grilo] core: remove uneed frees
- From: Victor Manuel Jaquez Leal <vjaquez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] core: remove uneed frees
- Date: Thu, 19 Aug 2010 19:04:43 +0000 (UTC)
commit ded8237bc643cf8060df6bd3ef948ed65883e66d
Author: Simón Pena <spenap gmail com>
Date: Mon Aug 16 20:03:23 2010 +0200
core: remove uneed frees
Source's properties 'id' and 'name' were freed after being retrieved, and
as the getter wasn't dup'ing them, they were being double freed.
This patch removes those uneeded frees.
b.g.o. #627207
src/grl-media-source.c | 2 --
src/grl-plugin-registry.c | 2 --
2 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index a5e39a4..81b1b3e 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -1082,7 +1082,6 @@ full_resolution_ctl_cb (GrlMediaSource *source,
struct SourceKeyMap *map = (struct SourceKeyMap *) iter->data;
g_object_get (map->source, "source-name", &name, NULL);
g_debug ("Using '%s' to resolve extra metadata now", name);
- g_free (name);
grl_metadata_source_resolve (map->source,
map->keys,
@@ -1166,7 +1165,6 @@ metadata_full_resolution_ctl_cb (GrlMediaSource *source,
struct SourceKeyMap *map = (struct SourceKeyMap *) iter->data;
g_object_get (map->source, "source-name", &name, NULL);
g_debug ("Using '%s' to resolve extra metadata now", name);
- g_free (name);
grl_metadata_source_resolve (map->source,
map->keys,
diff --git a/src/grl-plugin-registry.c b/src/grl-plugin-registry.c
index de60b66..ea7ca1b 100644
--- a/src/grl-plugin-registry.c
+++ b/src/grl-plugin-registry.c
@@ -362,8 +362,6 @@ grl_plugin_registry_unregister_source (GrlPluginRegistry *registry,
} else {
g_warning ("source '%s' not found", id);
}
-
- g_free (id);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]