summaryrefslogtreecommitdiff
path: root/plugins/xrandr
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2012-04-09 12:50:02 -0400
committerRichard Hughes <richard@hughsie.com>2012-04-10 11:46:36 +0100
commitcd1ae5a86a073c475724e161ec7d693fb7364dc8 (patch)
tree640a6b1da1199cb75c5eda69bdb40f553163c102 /plugins/xrandr
parenta29e780f4a721fe991735b843f56fa589a310952 (diff)
downloadgnome-settings-daemon-cd1ae5a86a073c475724e161ec7d693fb7364dc8.tar.gz
Disconnect signals from UpClient before unref'ing because it may survive the unref call.
https://bugzilla.gnome.org/show_bug.cgi?id=673007 Signed-off-by: Richard Hughes <richard@hughsie.com>
Diffstat (limited to 'plugins/xrandr')
-rw-r--r--plugins/xrandr/gsd-xrandr-manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 570553ad..3da2b7fc 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -2026,6 +2026,7 @@ gsd_xrandr_manager_stop (GsdXrandrManager *manager)
}
if (manager->priv->upower_client != NULL) {
+ g_signal_handlers_disconnect_by_data (manager->priv->upower_client, manager);
g_object_unref (manager->priv->upower_client);
manager->priv->upower_client = NULL;
}