From 054984099fd8867da92fa685dce728e1cc665fd0 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 21 Nov 2012 22:08:18 +0000 Subject: use correct unref functions --- javascript/jsapi/location.bnd | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'javascript') diff --git a/javascript/jsapi/location.bnd b/javascript/jsapi/location.bnd index e91094f2d..a381db111 100644 --- a/javascript/jsapi/location.bnd +++ b/javascript/jsapi/location.bnd @@ -58,7 +58,7 @@ getter protocol %{ jsret = JS_NewStringCopyN(cx, lwc_string_data(component), lwc_string_length(component)); - dom_string_unref(component); + lwc_string_unref(component); } %} @@ -69,7 +69,7 @@ getter host %{ jsret = JS_NewStringCopyN(cx, lwc_string_data(component), lwc_string_length(component)); - dom_string_unref(component); + lwc_string_unref(component); } %} @@ -80,7 +80,7 @@ getter hostname %{ jsret = JS_NewStringCopyN(cx, lwc_string_data(component), lwc_string_length(component)); - dom_string_unref(component); + lwc_string_unref(component); } %} @@ -92,7 +92,7 @@ getter port %{ jsret = JS_NewStringCopyN(cx, lwc_string_data(component), lwc_string_length(component)); - dom_string_unref(component); + lwc_string_unref(component); } %} @@ -104,7 +104,7 @@ getter pathname %{ jsret = JS_NewStringCopyN(cx, lwc_string_data(component), lwc_string_length(component)); - dom_string_unref(component); + lwc_string_unref(component); } %} @@ -116,7 +116,7 @@ getter search %{ jsret = JS_NewStringCopyN(cx, lwc_string_data(component), lwc_string_length(component)); - dom_string_unref(component); + lwc_string_unref(component); } %} @@ -128,6 +128,6 @@ getter hash %{ jsret = JS_NewStringCopyN(cx, lwc_string_data(component), lwc_string_length(component)); - dom_string_unref(component); + lwc_string_unref(component); } %} -- cgit v1.2.3