From 6682f243ce2cbb46a1323bcd5fdf3a672b5a5d00 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 9 Feb 2015 21:21:22 +0000 Subject: Free theme list after use --- src/config/theme.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/config/theme.c') diff --git a/src/config/theme.c b/src/config/theme.c index a5dbd0dd..26d48091 100644 --- a/src/config/theme.c +++ b/src/config/theme.c @@ -192,7 +192,9 @@ GSList * theme_list(void) { GSList *result = NULL; - _theme_list_dir(_get_themes_dir(), &result); + char *themes_dir = _get_themes_dir(); + _theme_list_dir(themes_dir, &result); + free(themes_dir); #ifdef THEMES_PATH _theme_list_dir(THEMES_PATH, &result); #endif -- cgit 1.4.1-2-gfad0