OSDN Git Service

LinGui: don't disable subme 10 when psy-rd is 0
[handbrake-jp/handbrake-jp-git.git] / gtk / src / subtitlehandler.c
index c2bce5f..c2ee73c 100644 (file)
@@ -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)
        {