[grilo-plugins] tracker: fix memory leak on removed sources
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tracker: fix memory leak on removed sources
- Date: Wed, 23 Mar 2011 09:51:17 +0000 (UTC)
commit cc6951ceb0fc5adec551710144722149ba5f4b5c
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date: Sun Mar 20 02:11:35 2011 +0000
tracker: fix memory leak on removed sources
We are increasing refcount of tracker sources in the notification
process (tracker_dbus_signal_cb function), we need to decrease it when
we're done.
Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
src/media/tracker/grl-tracker-media-notif.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/media/tracker/grl-tracker-media-notif.c b/src/media/tracker/grl-tracker-media-notif.c
index fb52c44..206fb58 100644
--- a/src/media/tracker/grl-tracker-media-notif.c
+++ b/src/media/tracker/grl-tracker-media-notif.c
@@ -71,9 +71,9 @@ tracker_evt_update_new (void)
{
tracker_evt_update_t *evt = g_slice_new0 (tracker_evt_update_t);
- evt->inserted_items = g_hash_table_new (g_direct_hash, g_direct_equal);
- evt->deleted_items = g_hash_table_new (g_direct_hash, g_direct_equal);
- evt->updated_items = g_hash_table_new (g_direct_hash, g_direct_equal);
+ evt->inserted_items = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, g_object_unref);
+ evt->deleted_items = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, g_object_unref);
+ evt->updated_items = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, g_object_unref);
evt->orphan_items = g_hash_table_new (g_direct_hash, g_direct_equal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]