• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision7d127d580b6d2d86853fc0a322323cdee2eca343 (tree)
Zeit2008-06-20 18:59:25
Autorvimboss
Commitervimboss

Log Message

updated for version 7.1-318

Ändern Zusammenfassung

Diff

diff -r 3acbcd0d3fd3 -r 7d127d580b6d src/gui_x11.c
--- a/src/gui_x11.c Fri Jun 20 09:40:11 2008 +0000
+++ b/src/gui_x11.c Fri Jun 20 09:59:25 2008 +0000
@@ -1538,8 +1538,11 @@
15381538 attr.depth = DefaultDepthOfScreen(scr);
15391539
15401540 if (!icon)
1541+ {
15411542 XpmCreatePixmapFromData(dsp, root_window, magick, &icon,
15421543 &icon_mask, &attr);
1544+ XpmFreeAttributes(&attr);
1545+ }
15431546
15441547 # ifdef FEAT_GUI_ATHENA
15451548 XtVaSetValues(vimShell, XtNiconPixmap, icon, XtNiconMask, icon_mask, NULL);
diff -r 3acbcd0d3fd3 -r 7d127d580b6d src/os_unix.c
--- a/src/os_unix.c Fri Jun 20 09:40:11 2008 +0000
+++ b/src/os_unix.c Fri Jun 20 09:59:25 2008 +0000
@@ -209,6 +209,7 @@
209209 {
210210 SmcConn smcconn; /* The SM connection ID */
211211 IceConn iceconn; /* The ICE connection ID */
212+ char *clientid; /* The client ID for the current smc session */
212213 Bool save_yourself; /* If we're in the middle of a save_yourself */
213214 Bool shutdown; /* If we're in shutdown mode */
214215 } xsmp_config_T;
@@ -2887,16 +2888,28 @@
28872888 if (clip_plus.owned)
28882889 clip_lose_selection(&clip_plus);
28892890 # endif
2890-# if (defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)) || defined(PROTO)
2891+# if defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)
28912892 if (xterm_Shell != (Widget)0)
28922893 XtDestroyWidget(xterm_Shell);
2894+# ifndef LESSTIF_VERSION
2895+ /* Lesstif crashes here, lose some memory */
28932896 if (xterm_dpy != NULL)
28942897 XtCloseDisplay(xterm_dpy);
28952898 if (app_context != (XtAppContext)NULL)
2899+ {
28962900 XtDestroyApplicationContext(app_context);
2901+# ifdef FEAT_X11
2902+ x11_display = NULL; /* freed by XtDestroyApplicationContext() */
2903+# endif
2904+ }
2905+# endif
28972906 # endif
28982907 # ifdef FEAT_X11
2899- if (x11_display != NULL && x11_display != xterm_dpy)
2908+ if (x11_display != NULL
2909+# ifdef FEAT_XCLIPBOARD
2910+ && x11_display != xterm_dpy
2911+# endif
2912+ )
29002913 XCloseDisplay(x11_display);
29012914 # endif
29022915 # if defined(HAVE_SIGALTSTACK) || defined(HAVE_SIGSTACK)
@@ -6290,22 +6303,22 @@
62906303 }
62916304 if (xterm_dpy != NULL)
62926305 {
6293-#if 0
6306+# if 0
62946307 /* Lesstif and Solaris crash here, lose some memory */
62956308 XtCloseDisplay(xterm_dpy);
6296-#endif
6309+# endif
62976310 if (x11_display == xterm_dpy)
62986311 x11_display = NULL;
62996312 xterm_dpy = NULL;
63006313 }
6301-#if 0
6314+# if 0
63026315 if (app_context != (XtAppContext)NULL)
63036316 {
63046317 /* Lesstif and Solaris crash here, lose some memory */
63056318 XtDestroyApplicationContext(app_context);
63066319 app_context = (XtAppContext)NULL;
63076320 }
6308-#endif
6321+# endif
63096322 }
63106323 # endif
63116324
@@ -6557,7 +6570,6 @@
65576570 xsmp_init(void)
65586571 {
65596572 char errorstring[80];
6560- char *clientid;
65616573 SmcCallbacks smcallbacks;
65626574 #if 0
65636575 SmPropValue smname;
@@ -6599,7 +6611,7 @@
65996611 | SmcSaveCompleteProcMask | SmcShutdownCancelledProcMask,
66006612 &smcallbacks,
66016613 NULL,
6602- &clientid,
6614+ &xsmp.clientid,
66036615 sizeof(errorstring),
66046616 errorstring);
66056617 if (xsmp.smcconn == NULL)
@@ -6638,6 +6650,8 @@
66386650 if (xsmp_icefd != -1)
66396651 {
66406652 SmcCloseConnection(xsmp.smcconn, 0, NULL);
6653+ vim_free(xsmp.clientid);
6654+ xsmp.clientid = NULL;
66416655 xsmp_icefd = -1;
66426656 }
66436657 }
diff -r 3acbcd0d3fd3 -r 7d127d580b6d src/version.c
--- a/src/version.c Fri Jun 20 09:40:11 2008 +0000
+++ b/src/version.c Fri Jun 20 09:59:25 2008 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 318,
671+/**/
670672 317,
671673 /**/
672674 316,
Show on old repository browser