From ad1b17d8f170c499a441fe24924f994ccf0b7e74 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 30 Sep 2011 03:24:45 +0200 Subject: Fix memory leaks --- src/index.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/index.c') diff --git a/src/index.c b/src/index.c index 49efc17..580585d 100644 --- a/src/index.c +++ b/src/index.c @@ -448,6 +448,7 @@ void get_index_string_dim(feh_file *file, Imlib_Font fn, int *fw, int *fh) * leading e.g. to a 0x0 report for index_dim = "%n". */ if (file == NULL) { + fake_file = 1; file = feh_file_new("foo"); file->info = feh_file_info_new(); } -- cgit v1.2.3