about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-02-09 21:21:22 +0000
committerJames Booth <boothj5@gmail.com>2015-02-09 21:21:22 +0000
commit6682f243ce2cbb46a1323bcd5fdf3a672b5a5d00 (patch)
tree477438ecfc75e927d245163ce7c4e137819a271d /src/config
parentaad7b3ed8ac245252e8d400ee79205a196989a11 (diff)
downloadprofani-tty-6682f243ce2cbb46a1323bcd5fdf3a672b5a5d00.tar.gz
Free theme list after use
Diffstat (limited to 'src/config')
-rw-r--r--src/config/theme.c4
1 files changed, 3 insertions, 1 deletions
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