# HG changeset patch # User Richard M. Stallman # Date 738723342 0 # Node ID a3c8d3866d01e11a4dc9a22917d28cbc65c4220c # Parent 49c371d2b0207e3f7a60318e68d28855e76d4fb1 (x_bitmap_icon): Don't free icon_bitmap; create it if it hasn't been created before. diff -r 49c371d2b020 -r a3c8d3866d01 src/xterm.c --- 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) */