summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-06-03 14:20:21 +0000
committerBram Moolenaar <Bram@vim.org>2009-06-03 14:20:21 +0000
commit9085f802766d205e3e2d4cf0ac7eb2824c6027e4 (patch)
treeef4f06803a54b9232d2bbd41a0832f88e95f40df
parent535c54008561ffea126c2c083d56312307692a0e (diff)
downloadvim-git-7.2.195.tar.gz
updated for version 7.2-195v7.2.195
-rw-r--r--src/gui_gtk_x11.c10
-rw-r--r--src/version.c2
2 files changed, 10 insertions, 2 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index d7f5103e1..87c73fd9c 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -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
diff --git a/src/version.c b/src/version.c
index e85968483..3f1722771 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 */
/**/
+ 195,
+/**/
194,
/**/
193,