mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 17:56:21 +00:00
g_free() to auto_gfree, introduce auto_guchar
Fix 11 potential mem leaks in theme.c
This commit is contained in:
@@ -163,9 +163,8 @@ roster_get_contact(const char* const barejid)
|
||||
{
|
||||
assert(roster != NULL);
|
||||
|
||||
gchar* barejidlower = g_utf8_strdown(barejid, -1);
|
||||
auto_gchar gchar* barejidlower = g_utf8_strdown(barejid, -1);
|
||||
PContact contact = g_hash_table_lookup(roster->contacts, barejidlower);
|
||||
g_free(barejidlower);
|
||||
|
||||
return contact;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user