diff --git a/src/ui_call_flow.c b/src/ui_call_flow.c index 3e3e017..e287c2c 100644 --- a/src/ui_call_flow.c +++ b/src/ui_call_flow.c @@ -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: diff --git a/src/ui_call_raw.c b/src/ui_call_raw.c index 826c546..ba58137 100644 --- a/src/ui_call_raw.c +++ b/src/ui_call_raw.c @@ -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; }