diff options
author | James Booth <boothj5@gmail.com> | 2012-07-31 23:20:11 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-07-31 23:20:11 +0100 |
commit | 453fcae2838f0e260eba4d0e69991e3f48b31abf (patch) | |
tree | 700514e90c7bf8bf202ca223d9af3fa574945dd3 /src | |
parent | f47b3304bd9d7fee2ea5a68ece443a8b0de2faf6 (diff) | |
download | profani-tty-453fcae2838f0e260eba4d0e69991e3f48b31abf.tar.gz |
Fixed definite memory leaks
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(); } |