diff options
author | James Booth <boothj5@gmail.com> | 2015-05-17 22:05:43 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-05-17 22:05:43 +0100 |
commit | 2c5b44421e1b3a163ce33249f9d0b1567d411b16 (patch) | |
tree | 5ba771ddcc003ef7d86e9585c87dd4b11af44f5a /src/config | |
parent | 97c5072f56b992d3bf2e4c3550a8010f9638b80a (diff) | |
download | profani-tty-2c5b44421e1b3a163ce33249f9d0b1567d411b16.tar.gz |
Added initial stabber test
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 4 | ||||
-rw-r--r-- | src/config/theme.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 59a6a7ca..36a04a8f 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -82,7 +82,7 @@ prefs_load(void) { GError *err; - log_info("Loading preferences"); +// log_info("Loading preferences"); prefs_loc = _get_preferences_file(); if (g_file_test(prefs_loc, G_FILE_TEST_EXISTS)) { @@ -739,4 +739,4 @@ _get_default_string(preference_t pref) default: return NULL; } -} \ No newline at end of file +} diff --git a/src/config/theme.c b/src/config/theme.c index f73dee19..aeee4463 100644 --- a/src/config/theme.c +++ b/src/config/theme.c @@ -207,12 +207,15 @@ theme_close(void) { if (theme) { g_key_file_free(theme); + theme = NULL; } if (theme_loc) { g_string_free(theme_loc, TRUE); + theme_loc = NULL; } if (bold_items) { g_hash_table_destroy(bold_items); + bold_items = NULL; } } @@ -613,4 +616,4 @@ theme_attrs(theme_item_t attrs) return result; } -} \ No newline at end of file +} |