From 238f2aeca97a566a243bc96a5fd5c78a2cae5a3c Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 29 Oct 2014 23:04:11 +0000 Subject: LinGui: fix several small memory leaks git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6479 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk/src/callbacks.c') diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 3859cbefa..5f9183db6 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -567,9 +567,9 @@ check_name_template(signal_user_data_t *ud, const char *str) { if (ghb_settings_get_boolean(ud->prefs, "auto_name")) { - gchar *template; + const gchar *template; - template = ghb_settings_get_string(ud->prefs, "auto_name_template"); + template = ghb_settings_get_const_string(ud->prefs, "auto_name_template"); if (strstr(template, str) != NULL) return TRUE; } @@ -1811,6 +1811,7 @@ set_title_settings(signal_user_data_t *ud, GValue *settings) title_id = ghb_settings_get_int(settings, "title"); title = ghb_lookup_title(title_id, &titleindex); + ghb_subtitle_set_pref_lang(settings); if (title != NULL) { gint num_chapters = hb_list_count(title->list_chapter); -- cgit v1.2.3