From 2da8ef3e8347c83dd279425cdbe1946a4e982846 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 26 Oct 2014 10:25:31 +0000 Subject: Add missed semicolon, and ensure nsurl is unreffed. --- amiga/launch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'amiga') 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; } -- cgit v1.2.3