[gnome-settings-daemon] xrandr: Fix small memory leak on shutdown
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] xrandr: Fix small memory leak on shutdown
- Date: Fri, 3 Jun 2011 14:50:31 +0000 (UTC)
commit ba85bef02bb6edc3f98bd42cf4b54e017ff19958
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 3 15:23:05 2011 +0100
xrandr: Fix small memory leak on shutdown
plugins/xrandr/gsd-xrandr-manager.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 2fcdfa0..55e1be3 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -1944,6 +1944,11 @@ gsd_xrandr_manager_stop (GsdXrandrManager *manager)
manager->priv->rw_screen = NULL;
}
+ if (manager->priv->introspection_data) {
+ g_dbus_node_info_unref (manager->priv->introspection_data);
+ manager->priv->introspection_data = NULL;
+ }
+
if (manager->priv->connection != NULL) {
g_object_unref (manager->priv->connection);
manager->priv->connection = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]