[gvfs/gdbus-core: 22/49] gdbus: Properly disconnect signal handlers
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/gdbus-core: 22/49] gdbus: Properly disconnect signal handlers
- Date: Tue, 31 Jul 2012 10:14:18 +0000 (UTC)
commit 24c5f03c4469951c2b631f5daadd8292c7564850
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 b0508c5..358be8f 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]