summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-10-26 10:25:31 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-10-26 10:25:31 +0000
commit2da8ef3e8347c83dd279425cdbe1946a4e982846 (patch)
tree940e41910aa3005829e0a24a1260705900c5c52d
parent64d591676b638b43831f5ae78a6c59a7753c62df (diff)
downloadnetsurf-2da8ef3e8347c83dd279425cdbe1946a4e982846.tar.gz
netsurf-2da8ef3e8347c83dd279425cdbe1946a4e982846.tar.bz2
Add missed semicolon, and ensure nsurl is unreffed.
-rwxr-xr-xamiga/launch.c4
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;
}