about summary refs log tree commit diff stats
path: root/src/preferences.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-07-31 23:01:15 +0100
committerJames Booth <boothj5@gmail.com>2012-07-31 23:01:15 +0100
commit0a42be57a31882d000437cc10729c360f3482ae0 (patch)
treea3335a5d722d9019addb0346e937d2b0c29d1544 /src/preferences.c
parentf7a542f488c27f3400bbaea909af933c6c9966cd (diff)
downloadprofani-tty-0a42be57a31882d000437cc10729c360f3482ae0.tar.gz
Cleaning up memory allocated by ncurses pads
Diffstat (limited to 'src/preferences.c')
-rw-r--r--src/preferences.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/preferences.c b/src/preferences.c
index 6cd7ac78..bcd749ce 100644
--- a/src/preferences.c
+++ b/src/preferences.c
@@ -96,6 +96,12 @@ prefs_load(void)
     _load_colours();
 }
 
+void
+prefs_close(void)
+{
+    g_key_file_free(prefs);
+}
+
 static NCURSES_COLOR_T
 _lookup_colour(const char * const colour)
 {