From e9f182e37a7f6e2dc339054841a3c9f930f573ed Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 28 Apr 2013 21:43:49 -0400 Subject: 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. --- gtk/gtkcelllayout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkcelllayout.c') 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); -- cgit v1.2.1