]> granicus.if.org Git - vim/commitdiff
updated for version 7.2-195 v7.2.195
authorBram Moolenaar <Bram@vim.org>
Wed, 3 Jun 2009 14:20:21 +0000 (14:20 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 3 Jun 2009 14:20:21 +0000 (14:20 +0000)
src/gui_gtk_x11.c
src/version.c

index d7f5103e1ebcb46eb460be2aea29cb925ca990e8..87c73fd9c130a84c374f138c9a19f6c2075fe282 100644 (file)
@@ -412,6 +412,7 @@ static const char *role_argument = NULL;
 #endif
 #if defined(FEAT_GUI_GNOME) && defined(FEAT_SESSION)
 static const char *restart_command = NULL;
+static       char *abs_restart_command = NULL;
 #endif
 static int found_iconic_arg = FALSE;
 
@@ -449,8 +450,10 @@ gui_mch_prepare(int *argc, char **argv)
        char_u buf[MAXPATHL];
 
        if (mch_FullName((char_u *)argv[0], buf, (int)sizeof(buf), TRUE) == OK)
-           /* Tiny leak; doesn't matter, and usually we don't even get here */
-           restart_command = (char *)vim_strsave(buf);
+       {
+           abs_restart_command = (char *)vim_strsave(buf);
+           restart_command = abs_restart_command;
+       }
     }
 #endif
 
@@ -611,6 +614,9 @@ gui_mch_prepare(int *argc, char **argv)
 gui_mch_free_all()
 {
     vim_free(gui_argv);
+#if defined(FEAT_GUI_GNOME) && defined(FEAT_SESSION)
+    vim_free(abs_restart_command);
+#endif
 }
 #endif
 
index e859684831a0baaf8a80e7c3a0effda1ac13ffaf..3f1722771b57a590369a7850145b4ce54e319a00 100644 (file)
@@ -676,6 +676,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    195,
 /**/
     194,
 /**/