summaryrefslogtreecommitdiffstats
path: root/src/gui_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-06-20 09:59:25 +0000
committerBram Moolenaar <Bram@vim.org>2008-06-20 09:59:25 +0000
commite82080179b24c930003e7fa2f580240c9aedd583 (patch)
tree8771a6ec8e8fdef0f491cb187603889bc1ff73ba /src/gui_x11.c
parent4678465a4b117d36015bd62860e19abb02d243af (diff)
updated for version 7.1-318v7.1.318
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r--src/gui_x11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c
index 3f2a256756..2842fa092b 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -1538,8 +1538,11 @@ gui_mch_init()
attr.depth = DefaultDepthOfScreen(scr);
if (!icon)
+ {
XpmCreatePixmapFromData(dsp, root_window, magick, &icon,
&icon_mask, &attr);
+ XpmFreeAttributes(&attr);
+ }
# ifdef FEAT_GUI_ATHENA
XtVaSetValues(vimShell, XtNiconPixmap, icon, XtNiconMask, icon_mask, NULL);