1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fixed definite memory leaks

This commit is contained in:
James Booth 2012-07-31 23:20:11 +01:00
parent f47b3304bd
commit 453fcae283
2 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,8 @@ main(int argc, char **argv)
return 1; return 1;
} }
g_option_context_free(context);
if (version == TRUE) { if (version == TRUE) {
g_print("Profanity, version %s\n", PACKAGE_VERSION); g_print("Profanity, version %s\n", PACKAGE_VERSION);
g_print("Copyright (C) 2012 James Booth <%s>.\n", PACKAGE_BUGREPORT); g_print("Copyright (C) 2012 James Booth <%s>.\n", PACKAGE_BUGREPORT);

View File

@ -93,6 +93,12 @@ prefs_load(void)
p_autocomplete_add(ac, jids[i]); p_autocomplete_add(ac, jids[i]);
} }
for (i = 0; i < njids; i++) {
free(jids[i]);
}
free(jids);
_load_colours(); _load_colours();
} }