diff options
author | Elijah Newren <newren gmail com> | 2007-09-16 02:46:32 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2007-09-16 02:46:32 +0000 |
commit | dc7e1007b022ad7a24927b375ea14c76eb61c2ee (patch) | |
tree | 5b5019454a4cb3382d91e6faf4771c73dd199e81 | |
parent | 976968e07ee94f0274df6d0bb2100afd9fef6f10 (diff) | |
download | metacity-dc7e1007b022ad7a24927b375ea14c76eb61c2ee.tar.gz |
Patch from Alexey Rusakov to prevent a crash on logout with metacity
2007-09-15 Elijah Newren <newren gmail com>
* src/session.c (warn_about_lame_clients_and_finish_interact):
Patch from Alexey Rusakov to prevent a crash on logout with
metacity subsequently not being restored in future sessions.
Fixes #433253.
svn path=/trunk/; revision=3340
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/session.c | 6 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2007-09-15 Elijah Newren <newren gmail com> + + * src/session.c (warn_about_lame_clients_and_finish_interact): + Patch from Alexey Rusakov to prevent a crash on logout with + metacity subsequently not being restored in future sessions. + Fixes #433253. + 2007-09-01 Elijah Newren <newren gmail com> * HACKING: update; cvs->svn & mention GConf needed diff --git a/src/session.c b/src/session.c index 4c247509..51faed97 100644 --- a/src/session.c +++ b/src/session.c @@ -1804,9 +1804,6 @@ warn_about_lame_clients_and_finish_interact (gboolean shutdown) display_iter = display_iter->next; } - /* don't need to free displays */ - displays = NULL; - if (lame == NULL) { /* No lame apps. */ @@ -1819,6 +1816,9 @@ warn_about_lame_clients_and_finish_interact (gboolean shutdown) timestamp = meta_display_get_current_time_roundtrip (displays->data); sprintf (timestampbuf, "%u", timestamp); + /* don't need to free displays */ + displays = NULL; + len = g_slist_length (lame); len *= 2; /* titles and also classes */ len += 2; /* --timestamp flag and actual timestamp */ |