[gvfs/gdbus-core] gdbus: Properly disconnect signal handlers
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/gdbus-core] gdbus: Properly disconnect signal handlers
- Date: Fri, 15 Jun 2012 16:45:44 +0000 (UTC)
commit c59d81ecfbd7f349dd52bc536704ad6ddfd21dcd
Author: Tomas Bzatek <tbzatek redhat com>
Date: Fri Jun 15 18:42:43 2012 +0200
gdbus: Properly disconnect signal handlers
...not doing that leads to accessing freed memory
daemon/gvfsmonitor.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsmonitor.c b/daemon/gvfsmonitor.c
index b13a98d..4997ea4 100644
--- a/daemon/gvfsmonitor.c
+++ b/daemon/gvfsmonitor.c
@@ -145,6 +145,7 @@ unsubscribe (Subscriber *subscriber)
{
subscriber->monitor->priv->subscribers = g_list_remove (subscriber->monitor->priv->subscribers, subscriber);
+ g_signal_handlers_disconnect_by_data (subscriber->connection, subscriber);
g_object_unref (subscriber->connection);
g_free (subscriber->id);
g_free (subscriber->object_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]