Fix crashes with shared calls groups

This commit is contained in:
Kaian 2015-07-05 15:58:14 +02:00
parent ef2a1f237c
commit d8ab9f3032
2 changed files with 3 additions and 6 deletions

View File

@ -864,7 +864,6 @@ call_flow_handle_key(PANEL *panel, int key)
call_group_add(group, call_get_xcall(vector_first(info->group->calls)));
}
call_group_add(group, vector_first(info->group->calls));
call_group_destroy(info->group);
call_flow_set_group(group);
break;
case ACTION_SHOW_RAW:

View File

@ -78,9 +78,6 @@ call_raw_destroy(PANEL *panel)
call_raw_info_t *info;
if ((info = call_raw_info(panel))) {
// Delete panel call displayed group
if (info->group)
call_group_destroy(info->group);
// Delete panel windows
delwin(info->pad);
free(info);
@ -158,12 +155,13 @@ call_raw_print_msg(PANEL *panel, sip_msg_t *msg)
// Check if we have enough space in our huge pad to store this message
if (info->padline + payload_lines > height) {
// Delete previous pad
delwin(info->pad);
// Create a new pad with more lines!
pad = newpad(height + 500, COLS);
// And copy all previous information
overwrite(info->pad, pad);
// Delete previous pad
delwin(info->pad);
// And store the new pad
info->pad = pad;
}