Duplicate the string returned by d[n]gettext before it is potentially

2007-08-23  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtkbuilderparser.c: (text): Duplicate the string returned by
	d[n]gettext before it is potentially freed. (#461945)


svn path=/trunk/; revision=18678
This commit is contained in:
Jan Arne Petersen 2007-08-23 15:29:59 +00:00 committed by Jan Arne Petersen
parent a35bd52a96
commit d18eaf32dd
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-08-23 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtkbuilderparser.c: (text): Duplicate the string returned by
d[n]gettext before it is potentially freed. (#461945)
2007-08-23 Emmanuele Bassi <ebassi@gnome.org>
* gtkfilechooserdefault.c:

View File

@ -918,9 +918,10 @@ text (GMarkupParseContext *context,
else
text = dgettext (data->domain, string);
prop_info->data = g_strdup (text);
g_free (string);
string = g_strdup (text);
}
else
prop_info->data = string;
}
}