[gdm] display: Enforce a few invariants
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] display: Enforce a few invariants
- Date: Mon, 17 Mar 2014 20:43:17 +0000 (UTC)
commit 9daa8927acb9a104088c5174bcd3a4b06b4ecb41
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Feb 25 12:21:52 2014 -0500
display: Enforce a few invariants
The GdmDisplay should only be cleaned up if it's finished
or failed.
https://bugzilla.gnome.org/show_bug.cgi?id=726380
daemon/gdm-display.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c
index be86f22..cb50a52 100644
--- a/daemon/gdm-display.c
+++ b/daemon/gdm-display.c
@@ -1246,6 +1246,9 @@ gdm_display_dispose (GObject *object)
g_debug ("GdmDisplay: Disposing display");
+ g_assert (display->priv->status == GDM_DISPLAY_FINISHED ||
+ display->priv->status == GDM_DISPLAY_FAILED);
+
if (display->priv->slave != NULL) {
gdm_slave_stop (display->priv->slave);
g_object_unref (display->priv->slave);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]