diff options
Diffstat (limited to 'frontends')
-rwxr-xr-x | frontends/amiga/launch.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/frontends/amiga/launch.c b/frontends/amiga/launch.c index 31800ef7a..10c32aeed 100755 --- a/frontends/amiga/launch.c +++ b/frontends/amiga/launch.c @@ -74,19 +74,19 @@ static void ami_openurl_free_list(struct MinList *list) struct ami_protocol *node; struct ami_protocol *nnode; - if(IsMinListEmpty(list)) return; - node = (struct ami_protocol *)GetHead((struct List *)list); - - do - { - nnode=(struct ami_protocol *)GetSucc((struct Node *)node); + if(IsMinListEmpty(list) == NULL) { + node = (struct ami_protocol *)GetHead((struct List *)list); - Remove((struct Node *)node); - if (node->protocol) lwc_string_unref(node->protocol); - free(node); - node = NULL; - }while((node=nnode)); + do + { + nnode=(struct ami_protocol *)GetSucc((struct Node *)node); + Remove((struct Node *)node); + if (node->protocol) lwc_string_unref(node->protocol); + free(node); + node = NULL; + }while((node=nnode)); + } free(list); } |