inpcom.c, delete_libs() can use line_free_x() now

This commit is contained in:
rlar 2013-03-06 18:18:15 +01:00
parent 6a466f7490
commit 632add21c5
1 changed files with 1 additions and 7 deletions

View File

@ -287,17 +287,11 @@ static void
delete_libs(void)
{
int i;
struct line *tmpdeck, *tmpdeck2;
for (i = 0; i < N_LIBRARIES; i++) {
if (libraries[i].name == NULL)
continue;
tfree(libraries[i].name);
tmpdeck = libraries[i].deck;
while (tmpdeck) { /* cannot use line_free_x(tmpdeck, TRUE); due to stack overflow */
tmpdeck2 = tmpdeck;
tmpdeck = tmpdeck->li_next;
line_free_x(tmpdeck2, FALSE);
}
line_free_x(libraries[i].deck, TRUE);
}
}