changeset 3282:a3c8d3866d01

(x_bitmap_icon): Don't free icon_bitmap; create it if it hasn't been created before.
author Richard M. Stallman <rms@gnu.org>
date Sun, 30 May 1993 00:55:42 +0000
parents 49c371d2b020
children e2a40a3baa4b
files src/xterm.c
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat May 29 22:34:54 1993 +0000
+++ b/src/xterm.c	Sun May 30 00:55:42 1993 +0000
@@ -3631,12 +3631,10 @@
     return 1;
 
 #ifdef HAVE_X11
-  if (icon_bitmap)
-    XFreePixmap (x_current_display, icon_bitmap);
-  
-  icon_bitmap =
-    XCreateBitmapFromData (x_current_display, FRAME_X_WINDOW (f),
-			   gnu_bits, gnu_width, gnu_height);
+  if (! icon_bitmap)
+    icon_bitmap =
+      XCreateBitmapFromData (x_current_display, FRAME_X_WINDOW (f),
+			     gnu_bits, gnu_width, gnu_height);
   x_wm_set_icon_pixmap (f, icon_bitmap);
   f->display.x->icon_bitmap_flag = 1;
 #else /* ! defined (HAVE_X11) */