comparison src/xterm.c @ 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 d1a31cee8fca
children a47979ffad1e
comparison
equal deleted inserted replaced
3281:49c371d2b020 3282:a3c8d3866d01
3629 3629
3630 if (FRAME_X_WINDOW (f) == 0) 3630 if (FRAME_X_WINDOW (f) == 0)
3631 return 1; 3631 return 1;
3632 3632
3633 #ifdef HAVE_X11 3633 #ifdef HAVE_X11
3634 if (icon_bitmap) 3634 if (! icon_bitmap)
3635 XFreePixmap (x_current_display, icon_bitmap); 3635 icon_bitmap =
3636 3636 XCreateBitmapFromData (x_current_display, FRAME_X_WINDOW (f),
3637 icon_bitmap = 3637 gnu_bits, gnu_width, gnu_height);
3638 XCreateBitmapFromData (x_current_display, FRAME_X_WINDOW (f),
3639 gnu_bits, gnu_width, gnu_height);
3640 x_wm_set_icon_pixmap (f, icon_bitmap); 3638 x_wm_set_icon_pixmap (f, icon_bitmap);
3641 f->display.x->icon_bitmap_flag = 1; 3639 f->display.x->icon_bitmap_flag = 1;
3642 #else /* ! defined (HAVE_X11) */ 3640 #else /* ! defined (HAVE_X11) */
3643 if (f->display.x->icon_desc) 3641 if (f->display.x->icon_desc)
3644 { 3642 {