--- src/session.c	2007-07-06 02:34:24 +0400
+++ src/session.c.fixed	2007-07-06 02:34:32 +0400
@@ -1824,9 +1824,6 @@ warn_about_lame_clients_and_finish_inter
 
       display_iter = display_iter->next;
     }
-  /* don't need to free displays */
-  displays = NULL;
-
   if (lame == NULL)
     {
       /* No lame apps. */
@@ -1839,6 +1836,9 @@ warn_about_lame_clients_and_finish_inter
   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 */
