[gdm] Don't destroy shells hash table if we never made it
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Don't destroy shells hash table if we never made it
- Date: Tue, 31 Aug 2010 18:27:59 +0000 (UTC)
commit 57d20b096995029ed4c715e27518729cdd7dade6
Author: Ray Strode <rstrode redhat com>
Date: Fri Aug 27 17:35:59 2010 -0400
Don't destroy shells hash table if we never made it
gui/simple-greeter/gdm-user-manager.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index 0069480..40707b9 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -2792,7 +2792,10 @@ gdm_user_manager_finalize (GObject *object)
if (manager->priv->shells_monitor != NULL) {
g_file_monitor_cancel (manager->priv->shells_monitor);
}
- g_hash_table_destroy (manager->priv->shells);
+
+ if (manager->priv->shells != NULL) {
+ g_hash_table_destroy (manager->priv->shells);
+ }
G_OBJECT_CLASS (gdm_user_manager_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]