diff options
author | jstebbins <[email protected]> | 2014-10-29 23:04:11 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-10-29 23:04:11 +0000 |
commit | 238f2aeca97a566a243bc96a5fd5c78a2cae5a3c (patch) | |
tree | ad15605087a74c2aaacaa08179a33a30a3cbf532 /gtk/src/callbacks.c | |
parent | 387a47a9e2704ec4bd0b29d40859cff295de3b69 (diff) |
LinGui: fix several small memory leaks
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6479 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |