summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/src/subtitlehandler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c
index c2bce5fc5..c2ee73cfd 100644
--- a/gtk/src/subtitlehandler.c
+++ b/gtk/src/subtitlehandler.c
@@ -335,8 +335,8 @@ ghb_set_pref_subtitle(gint titleindex, signal_user_data_t *ud)
found_cc = TRUE;
ghb_add_subtitle(ud, dup);
jj++;
+ g_free(lang);
}
- g_free(lang);
}
if (foreign_lang_index < 0 && pref_lang != NULL)
{