diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 21:40:32 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 21:40:32 +0000 |
commit | 05fa29ba8bc2dbfaa9af7ed1263554c7cdc9214d (patch) | |
tree | 4dfcf8af6868400d5464e61cd625609f1cf5001a /frontends/amiga/launch.c | |
parent | 4f0c9b6c610d1eb9a5bcccf6dbf3f53410df9432 (diff) | |
download | netsurf-05fa29ba8bc2dbfaa9af7ed1263554c7cdc9214d.tar.gz netsurf-05fa29ba8bc2dbfaa9af7ed1263554c7cdc9214d.tar.bz2 |
more allocvec/malloc changes
Diffstat (limited to 'frontends/amiga/launch.c')
-rwxr-xr-x | frontends/amiga/launch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/amiga/launch.c b/frontends/amiga/launch.c index 8020dd6b8..31800ef7a 100755 --- a/frontends/amiga/launch.c +++ b/frontends/amiga/launch.c @@ -50,10 +50,10 @@ static struct ami_protocol *ami_openurl_add_protocol(const char *url) { nsurl *ns_url; struct ami_protocol *ami_p = - (struct ami_protocol *)AllocVecTagList(sizeof(struct ami_protocol), NULL); + (struct ami_protocol *)malloc(sizeof(struct ami_protocol)); if (nsurl_create(url, &ns_url) != NSERROR_OK) { - FreeVec(ami_p); + free(ami_p); return NULL; } @@ -61,7 +61,7 @@ static struct ami_protocol *ami_openurl_add_protocol(const char *url) nsurl_unref(ns_url); if (ami_p->protocol == NULL) { - FreeVec(ami_p); + free(ami_p); return NULL; } @@ -83,11 +83,11 @@ static void ami_openurl_free_list(struct MinList *list) Remove((struct Node *)node); if (node->protocol) lwc_string_unref(node->protocol); - FreeVec(node); + free(node); node = NULL; }while((node=nnode)); - FreeVec(list); + free(list); } static BOOL ami_openurl_check_list(struct MinList *list, nsurl *url) |