Cleanups: while->for loops (loaders list)

This commit is contained in:
Kim Woelders 2021-04-09 17:07:06 +02:00
parent 240857af99
commit 3c645829b4
1 changed files with 4 additions and 6 deletions

View File

@ -75,14 +75,12 @@ __imlib_ConsumeLoader(ImlibLoader * l)
void
__imlib_RemoveAllLoaders(void)
{
ImlibLoader *l, *il;
ImlibLoader *l, *l_next;
l = loaders;
while (l)
for (l = loaders; l; l = l_next)
{
il = l;
l = l->next;
__imlib_ConsumeLoader(il);
l_next = l->next;
__imlib_ConsumeLoader(l);
}
loaders = NULL;
}