mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Merge pull request #1160 from profanity-im/fix/1159-groupaddsegfault
Fix segfault in group add/remove command
This commit is contained in:
commit
41bf7f4b22
@ -151,7 +151,6 @@ _group_add_id_handler(xmpp_stanza_t *const stanza, void *const userdata)
|
||||
if (userdata) {
|
||||
GroupData *data = userdata;
|
||||
ui_group_added(data->name, data->group);
|
||||
_free_group_data(data);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -194,9 +193,6 @@ _group_remove_id_handler(xmpp_stanza_t *const stanza, void *const userdata)
|
||||
if (userdata) {
|
||||
GroupData *data = userdata;
|
||||
ui_group_removed(data->name, data->group);
|
||||
free(data->name);
|
||||
free(data->group);
|
||||
free(userdata);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user