summaryrefslogtreecommitdiff
path: root/gtk/gtkcelllayout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-04-28 21:43:49 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-04-28 21:43:49 -0400
commite9f182e37a7f6e2dc339054841a3c9f930f573ed (patch)
tree4c6193453e3a99403eeb327a58f8f6c15d8423b7 /gtk/gtkcelllayout.c
parent13858fde29e9626d1d959d436f87105263bced98 (diff)
downloadgtk+-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.c2
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);