mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 01:46:20 +00:00
Fixed memleak in title bar roster_find_contact
This commit is contained in:
@@ -166,8 +166,10 @@ _title_bar_draw(void)
|
||||
// show privacy
|
||||
if (current_recipient != NULL) {
|
||||
char *recipient_jid = NULL;
|
||||
if (roster_find_contact(current_recipient) != NULL) {
|
||||
char *found_contact = roster_find_contact(current_recipient);
|
||||
if (found_contact != NULL) {
|
||||
recipient_jid = roster_barejid_from_name(current_recipient);
|
||||
free(found_contact);
|
||||
} else {
|
||||
recipient_jid = current_recipient;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user