mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 05:06:21 +00:00
Cleanup and mem leak fix
Improve usage of `gchar` and `char` by setting them correctly Increase usage of `auto_gchar` and `auto_char` Fix 2 mem leaks (rosterwin.c, avatar.c)
This commit is contained in:
@@ -176,7 +176,7 @@ gchar*
|
||||
files_get_account_data_path(const char* const specific_dir, const char* const jid)
|
||||
{
|
||||
auto_gchar gchar* data_dir = files_get_data_path(specific_dir);
|
||||
auto_gchar gchar* account_dir = str_replace(jid, "@", "_at_");
|
||||
auto_char char* account_dir = str_replace(jid, "@", "_at_");
|
||||
|
||||
return g_strdup_printf("%s/%s", data_dir, account_dir);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user