summaryrefslogtreecommitdiff
path: root/src/slideshow.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-01-24 05:40:15 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-01-25 17:45:47 +0100
commit9353845a5f397a36440263800d9a70a80ab609ad (patch)
tree19290911dc9f9d5f970d8494a5f1d09072a219ee /src/slideshow.c
parentf0461a03f3873858c8febb6a3eac83c04496ac4d (diff)
free opt.start_list_at before NULLing it
Diffstat (limited to 'src/slideshow.c')
-rw-r--r--src/slideshow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index 3a3cd0a..9154d2d 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -57,6 +57,7 @@ void init_slideshow_mode(void)
// Try finding an exact filename match first
for (; l && opt.start_list_at; l = l->next) {
if (!strcmp(opt.start_list_at, FEH_FILE(l->data)->filename)) {
+ free(opt.start_list_at);
opt.start_list_at = NULL;
break;
}
@@ -83,6 +84,7 @@ void init_slideshow_mode(void)
current_filename = FEH_FILE(l->data)->filename;
}
if (!strcmp(start_at_filename, current_filename)) {
+ free(opt.start_list_at);
opt.start_list_at = NULL;
break;
}