summaryrefslogtreecommitdiffstats
path: root/gtk/src/subtitlehandler.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-08-07 13:31:47 -0700
committerJohn Stebbins <[email protected]>2018-08-07 13:31:47 -0700
commit1fbea6b770f6691d4a07b60d1e370fa70c483473 (patch)
treea0897769e9509936aa79681ae3da4642b680f2ae /gtk/src/subtitlehandler.c
parent4a67ac8a137e16cf9af7c5ed32d9d860c8ee840a (diff)
LinGui: fix some small memory leaks
Diffstat (limited to 'gtk/src/subtitlehandler.c')
-rw-r--r--gtk/src/subtitlehandler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c
index 9297c0968..881996d99 100644
--- a/gtk/src/subtitlehandler.c
+++ b/gtk/src/subtitlehandler.c
@@ -1532,6 +1532,7 @@ static void subtitle_def_selected_lang_list_clear(signal_user_data_t *ud)
gtk_tree_store_append(avail_ts, &pos, NULL);
}
gtk_tree_store_set(avail_ts, &pos, 0, lang, 1, index, -1);
+ g_free(lang);
} while (gtk_tree_model_iter_next(selected_tm, &iter));
}
gtk_tree_store_clear(GTK_TREE_STORE(selected_tm));