rl_undo_list = rl_undo_list->next;
if (release->what == UNDO_DELETE)
- free (release->text);
+ xfree (release->text);
xfree (release);
}
{
UNDO_LIST *list, *new, *roving, *c;
+ if (head == 0)
+ return head;
+
list = head;
new = 0;
while (list)
case UNDO_DELETE:
rl_point = start;
rl_insert_text (rl_undo_list->text);
- free (rl_undo_list->text);
+ xfree (rl_undo_list->text);
break;
/* Undoing inserts means deleting some text. */