diff options
| author | Richard M. Stallman | 1993-05-30 00:55:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-30 00:55:42 +0000 |
| commit | 8583db5803f0bb54200a3558b6dffbee9eaeaf68 (patch) | |
| tree | ff9b4adbcb2a68d033483bbc9b14df3646cc4052 /src/xterm.c | |
| parent | 7e0795a49372eb27a5d5f7ddf5d7ca8c7daeee94 (diff) | |
| download | emacs-8583db5803f0bb54200a3558b6dffbee9eaeaf68.tar.gz emacs-8583db5803f0bb54200a3558b6dffbee9eaeaf68.zip | |
(x_bitmap_icon): Don't free icon_bitmap;
create it if it hasn't been created before.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c index 9afdd7008f6..db0f61e8f1d 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3631,12 +3631,10 @@ x_bitmap_icon (f) | |||
| 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) */ |