[rygel-grilo] Fix a couple of leaks
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel-grilo] Fix a couple of leaks
- Date: Thu, 8 Apr 2010 18:25:18 +0000 (UTC)
commit 5f5d3eb680484bacfe131609a0f3d05e0dcb7de7
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Thu Apr 8 20:24:51 2010 +0200
Fix a couple of leaks
lib/media-server2.c | 2 +-
src/rygel-grilo.c | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/lib/media-server2.c b/lib/media-server2.c
index 95d7e76..6c4060f 100644
--- a/lib/media-server2.c
+++ b/lib/media-server2.c
@@ -248,7 +248,7 @@ get_array_properties (const gchar *id,
g_ptr_array_add (prop_array, val);
} else {
val = get_unknown_value (filter[i]);
- g_hash_table_insert (properties, g_strdup (filter[i]), val);
+ g_hash_table_insert (properties, (gchar *) filter[i], val);
g_ptr_array_add (prop_array, val);
}
} else {
diff --git a/src/rygel-grilo.c b/src/rygel-grilo.c
index 0ef9549..4234a92 100644
--- a/src/rygel-grilo.c
+++ b/src/rygel-grilo.c
@@ -368,6 +368,8 @@ wait_for_result (RygelGriloData *rgdata)
while (!rgdata->updated) {
g_main_context_iteration (mainloop_context, TRUE);
}
+
+ g_main_loop_unref (mainloop);
}
static GHashTable *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]