gnome-session/xml-leak.patch

16 lines
695 B
Diff
Raw Normal View History

2008-09-18 14:36:39 +00:00
diff -up gnome-session-2.23.92/gnome-session/gsm-inhibit-dialog.c.xml-leak gnome-session-2.23.92/gnome-session/gsm-inhibit-dialog.c
--- gnome-session-2.23.92/gnome-session/gsm-inhibit-dialog.c.xml-leak 2008-09-18 01:39:26.000000000 -0400
+++ gnome-session-2.23.92/gnome-session/gsm-inhibit-dialog.c 2008-09-18 01:38:56.000000000 -0400
@@ -1001,6 +1001,11 @@ gsm_inhibit_dialog_dispose (GObject *obj
dialog->priv->inhibitors = NULL;
}
+ if (dialog->priv->xml != NULL) {
+ g_object_unref (dialog->priv->xml);
+ dialog->priv->xml = NULL;
+ }
+
G_OBJECT_CLASS (gsm_inhibit_dialog_parent_class)->dispose (object);
}