diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-02-24 03:12:40 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-02-24 03:12:40 +0000 |
commit | e4bfca808d939f4cf9e27052e2a99cb60239a891 (patch) | |
tree | 931403269437a6c7e88c2080bdde4aef51bf73ae /src | |
parent | f08fa44a1a33009dfdc26107a5c0923e07e8d288 (diff) | |
download | vim-git-e4bfca808d939f4cf9e27052e2a99cb60239a891.tar.gz |
updated for version 7.2-125v7.2.125
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_x11.c | 59 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 28 insertions, 33 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c index b56c9436c..919bff66b 100644 --- a/src/gui_x11.c +++ b/src/gui_x11.c @@ -1587,6 +1587,8 @@ gui_mch_uninit() XtCloseDisplay(gui.dpy); gui.dpy = NULL; vimShell = (Widget)0; + vim_free(gui_argv); + gui_argv = NULL; } /* @@ -1761,6 +1763,8 @@ gui_mch_exit(rc) * says that this isn't needed when exiting, so just skip it. */ XtCloseDisplay(gui.dpy); #endif + vim_free(gui_argv); + gui_argv = NULL; } /* @@ -3439,47 +3443,37 @@ gui_mch_register_sign(signfile) char_u *signfile; { XpmAttributes attrs; - XImage *sign; + XImage *sign = NULL; int status; /* * Setup the color substitution table. */ - sign = NULL; if (signfile[0] != NUL && signfile[0] != '-') { - sign = (XImage *)alloc(sizeof(XImage)); - if (sign != NULL) + XpmColorSymbol color[5] = { - XpmColorSymbol color[5] = - { - {"none", NULL, 0}, - {"iconColor1", NULL, 0}, - {"bottomShadowColor", NULL, 0}, - {"topShadowColor", NULL, 0}, - {"selectColor", NULL, 0} - }; - attrs.valuemask = XpmColorSymbols; - attrs.numsymbols = 2; - attrs.colorsymbols = color; - attrs.colorsymbols[0].pixel = gui.back_pixel; - attrs.colorsymbols[1].pixel = gui.norm_pixel; - status = XpmReadFileToImage(gui.dpy, (char *)signfile, + {"none", NULL, 0}, + {"iconColor1", NULL, 0}, + {"bottomShadowColor", NULL, 0}, + {"topShadowColor", NULL, 0}, + {"selectColor", NULL, 0} + }; + attrs.valuemask = XpmColorSymbols; + attrs.numsymbols = 2; + attrs.colorsymbols = color; + attrs.colorsymbols[0].pixel = gui.back_pixel; + attrs.colorsymbols[1].pixel = gui.norm_pixel; + status = XpmReadFileToImage(gui.dpy, (char *)signfile, &sign, NULL, &attrs); - - if (status == 0) - { - /* Sign width is fixed at two columns now. - if (sign->width > gui.sign_width) - gui.sign_width = sign->width + 8; */ - } - else - { - vim_free(sign); - sign = NULL; - EMSG(_(e_signdata)); - } + if (status == 0) + { + /* Sign width is fixed at two columns now. + if (sign->width > gui.sign_width) + gui.sign_width = sign->width + 8; */ } + else + EMSG(_(e_signdata)); } return (void *)sign; @@ -3489,8 +3483,7 @@ gui_mch_register_sign(signfile) gui_mch_destroy_sign(sign) void *sign; { - XFree(((XImage *)sign)->data); - vim_free(sign); + XDestroyImage((XImage*)sign); } #endif diff --git a/src/version.c b/src/version.c index b56d5df15..c97e44271 100644 --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 125, +/**/ 124, /**/ 123, |