diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-26 10:25:31 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-26 10:25:31 +0000 |
commit | 2da8ef3e8347c83dd279425cdbe1946a4e982846 (patch) | |
tree | 940e41910aa3005829e0a24a1260705900c5c52d /amiga/launch.c | |
parent | 64d591676b638b43831f5ae78a6c59a7753c62df (diff) | |
download | netsurf-2da8ef3e8347c83dd279425cdbe1946a4e982846.tar.gz netsurf-2da8ef3e8347c83dd279425cdbe1946a4e982846.tar.bz2 |
Add missed semicolon, and ensure nsurl is unreffed.
Diffstat (limited to 'amiga/launch.c')
-rwxr-xr-x | amiga/launch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/amiga/launch.c b/amiga/launch.c index 67d74e49d..b3678f9a8 100755 --- a/amiga/launch.c +++ b/amiga/launch.c @@ -46,7 +46,7 @@ struct ami_protocol struct ami_protocol *ami_openurl_add_protocol(const char *url) { - nsurl *ns_url + nsurl *ns_url; struct ami_protocol *ami_p = (struct ami_protocol *)AllocVecTagList(sizeof(struct ami_protocol), NULL); @@ -56,10 +56,10 @@ struct ami_protocol *ami_openurl_add_protocol(const char *url) } ami_p->protocol = nsurl_get_component(ns_url, NSURL_SCHEME); + nsurl_unref(ns_url); if (ami_p->protocol == NULL) { FreeVec(ami_p); - nsurl_unref(ns_url); return NULL; } |