Skip to content

Commit

Permalink
fix some crashes of the widget (radareorg#15694)
Browse files Browse the repository at this point in the history
fix some crashes of the widget
  • Loading branch information
Vane11ope authored Dec 20, 2019
1 parent 4dcc9c0 commit 45fec15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libr/cons/dietline.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,10 @@ static void selection_widget_erase() {
RCons *cons = r_cons_singleton ();
if (cons->event_resize && cons->event_data) {
cons->event_resize (cons->event_data);
cons->cb_task_oneshot (cons->user, print_rline_task, NULL);
RCore *core = (RCore *)(cons->user);
if (core) {
cons->cb_task_oneshot (&core->tasks, print_rline_task, core);
}
}
printf ("%s", R_CONS_CLEAR_FROM_CURSOR_TO_END);
}
Expand Down

0 comments on commit 45fec15

Please sign in to comment.