Browse Source

fixed segfault on exit

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/slim/trunk@119 7c53e7cc-98ea-0310-8f1f-a0b24da60408
sip 15 years ago
parent
commit
61360db6f3
2 changed files with 12 additions and 2 deletions
  1. 8 0
      ChangeLog
  2. 4 2
      app.cpp

+ 8 - 0
ChangeLog

@@ -1,3 +1,11 @@
+1.2.7 - XXXX.XX.XX
+    * Fixed segfault on exit when testing themes. Thanks
+      to Darren Salt & Mike Massonnet
+    * Fixed vt argument detection, thanks to Henrik Brix Andersen
+    * Corrected reference to input_color in the default theme
+    * Fixed default shell setting
+    * Added ssetbg, a simple tool for setting the backround image.
+
 1.2.6 - 2006.09.15
     * Bug #008167: Update pid when in daemon mode
     * Fixed warnings when compiling with -Wall. Thanks to

+ 4 - 2
app.cpp

@@ -347,6 +347,7 @@ void App::Login() {
     }
     if (WIFEXITED(status) && WEXITSTATUS(status)) {
         LoginPanel->Message("Failed to execute login command");
+        sleep(3);
     } else {
          string sessStop = cfg->getOption("sessionstop_cmd");
          if (sessStop != "") {
@@ -437,12 +438,13 @@ void App::Exit() {
         char* testmsg = "This is a test message :-)";
         LoginPanel->Message(testmsg);
         sleep(3);
+        delete LoginPanel;
+        XCloseDisplay(Dpy);
     } else {
+        delete LoginPanel;
         StopServer();
         RemoveLock();
     }
-    XCloseDisplay(Dpy);
-    delete LoginPanel;
     delete cfg;
     exit(OK_EXIT);
 }