diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-04-28 21:43:49 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-04-28 21:43:49 -0400 |
commit | e9f182e37a7f6e2dc339054841a3c9f930f573ed (patch) | |
tree | 4c6193453e3a99403eeb327a58f8f6c15d8423b7 /gtk/gtkcelllayout.c | |
parent | 13858fde29e9626d1d959d436f87105263bced98 (diff) | |
download | gtk+-e9f182e37a7f6e2dc339054841a3c9f930f573ed.tar.gz |
Fix a few memory leaks wrt to translations
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=699016
The fix here is slightly different. We make
_gtk_builder_parser_translate return a const char * instead of
a dup'ed string, and fix up the callers.
Diffstat (limited to 'gtk/gtkcelllayout.c')
-rw-r--r-- | gtk/gtkcelllayout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcelllayout.c b/gtk/gtkcelllayout.c index f9e0ce8d06..4f6425de8b 100644 --- a/gtk/gtkcelllayout.c +++ b/gtk/gtkcelllayout.c @@ -812,7 +812,7 @@ cell_packing_end_element (GMarkupParseContext *context, /* translate the string */ if (parser_data->string->len && parser_data->translatable) { - gchar *translated; + const gchar *translated; const gchar* domain; domain = gtk_builder_get_translation_domain (parser_data->builder); |