summaryrefslogtreecommitdiffstats
path: root/gtk/src/subtitlehandler.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-11-15 09:53:13 -0800
committerJohn Stebbins <[email protected]>2016-11-15 09:53:42 -0800
commita9d2d2aba75bcb12a08cf2c635b8431476af14a8 (patch)
tree1a2949140e65e62d7271c3e56195c466b6d0a8fc /gtk/src/subtitlehandler.c
parentd1d83054e3c9d633a3792888f78247faf040f09d (diff)
LinGui: Fix some minor memory leaks
Diffstat (limited to 'gtk/src/subtitlehandler.c')
-rw-r--r--gtk/src/subtitlehandler.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c
index ba68bf9d9..8c5df30c9 100644
--- a/gtk/src/subtitlehandler.c
+++ b/gtk/src/subtitlehandler.c
@@ -860,6 +860,14 @@ srt_setting_update(GhbValue *val, const char *name, signal_user_data_t *ud)
subtitle_list_refresh_selected(ud, subsettings);
ghb_live_reset(ud);
}
+ else
+ {
+ ghb_value_free(&val);
+ }
+ }
+ else
+ {
+ ghb_value_free(&val);
}
}