repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: d3feaaa216d65fc6ac06edc498c6e9684c038f96:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit d3feaaa216d65fc6ac06edc498c6e9684c038f96
Author: Marc Lehmann 
Date:   Sat Jan 19 00:24:53 2008 +0000

    *** empty log message ***

diff --git a/Changes b/Changes
index e5fe418a54c555759ca3a032c977fe1df6c68e29..
index ..a5f62677d9a4f77b9e22f180babdd1754040fc55 100644
--- a/Changes
+++ b/Changes
@@ -17,6 +17,10 @@ WISH: load system-wide config file even if we don't have one
 WISH: look into XAddConnectionWatch, does anybody need that?
 DUMB: support tex fonts

+	- fix a crash bug where urxvtd would crash when urxvtc was called
+          with wrong arguments (I wish debian maintainers in general would
+          report bugs and their proposed fixes to the original package maintaienrs
+          instead of sitting on them for good measure to see if anybody notices).
         - check for refresh after initialising to avoid staying blank
           till the first event arrives. or so.
 	- continuously update transparency while moving/resizing now.
diff --git a/src/main.C b/src/main.C
index 9decb261b27b760f6b5e67e63a1c03e681feaddc..
index ..272d1eb9d14002932c25e95d75b39aa5c160e715 100644
--- a/src/main.C
+++ b/src/main.C
@@ -228,6 +228,10 @@ rxvt_term::~rxvt_term ()
 #endif
   delete fontset[0];

+#ifdef HAVE_BG_PIXMAP
+  bgPixmap.destroy ();
+#endif
+
   if (display)
     {
       selection_clear ();
@@ -276,13 +280,10 @@ rxvt_term::~rxvt_term ()
           }

       clear ();
-    }

-#ifdef HAVE_BG_PIXMAP
-  bgPixmap.destroy ();
-#endif
-  display->flush (); /* ideally .put should do this */
-  displays.put (display);
+      display->flush (); /* ideally .put should do this */
+      displays.put (display);
+    }

   scr_release ();

-----END OF PAGE-----