mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Fix memory leak in accounts_get_login_status()
This commit is contained in:
parent
45fd229c11
commit
e7b6051e57
@ -958,6 +958,10 @@ accounts_get_login_status(const char* const account_name)
|
||||
if (g_strcmp0(setting, "last") == 0) {
|
||||
status = accounts_get_last_status(account_name);
|
||||
}
|
||||
|
||||
if (setting) {
|
||||
g_free(setting);
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -193,7 +193,8 @@ sv_ev_roster_received(void)
|
||||
cl_ev_presence_send(conn_presence, 0);
|
||||
}
|
||||
|
||||
free(last_activity_str);
|
||||
g_free(status_message);
|
||||
g_free(last_activity_str);
|
||||
|
||||
const char* fulljid = connection_get_fulljid();
|
||||
plugins_on_connect(account_name, fulljid);
|
||||
|
Loading…
Reference in New Issue
Block a user