diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/preferences.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index c4175160..5e1ef9c5 100644 --- a/src/main.c +++ b/src/main.c @@ -52,6 +52,8 @@ main(int argc, char **argv) return 1; } + g_option_context_free(context); + if (version == TRUE) { g_print("Profanity, version %s\n", PACKAGE_VERSION); g_print("Copyright (C) 2012 James Booth <%s>.\n", PACKAGE_BUGREPORT); diff --git a/src/preferences.c b/src/preferences.c index bcd749ce..833425d8 100644 --- a/src/preferences.c +++ b/src/preferences.c @@ -93,6 +93,12 @@ prefs_load(void) p_autocomplete_add(ac, jids[i]); } + for (i = 0; i < njids; i++) { + free(jids[i]); + } + free(jids); + + _load_colours(); } |