diff --git a/ChangeLog b/ChangeLog index 7164e3b5a5..6d55bbf2a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-23 Jan Arne Petersen + + * gtk/gtkbuilderparser.c: (text): Duplicate the string returned by + d[n]gettext before it is potentially freed. (#461945) + 2007-08-23 Emmanuele Bassi * gtkfilechooserdefault.c: diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c index 23d45db479..5c80c10110 100644 --- a/gtk/gtkbuilderparser.c +++ b/gtk/gtkbuilderparser.c @@ -918,10 +918,11 @@ text (GMarkupParseContext *context, else text = dgettext (data->domain, string); + prop_info->data = g_strdup (text); g_free (string); - string = g_strdup (text); } - prop_info->data = string; + else + prop_info->data = string; } }