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:
parent
f47b3304bd
commit
453fcae283
@ -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);
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user