mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 20:00:46 -08:00
(x_bitmap_icon): Don't free icon_bitmap;
create it if it hasn't been created before.
This commit is contained in:
parent
7e0795a493
commit
8583db5803
1 changed files with 4 additions and 6 deletions
10
src/xterm.c
10
src/xterm.c
|
|
@ -3631,12 +3631,10 @@ x_bitmap_icon (f)
|
|||
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) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue