[gjs] jsapi-util-string: Add missing JS_EndRequest
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] jsapi-util-string: Add missing JS_EndRequest
- Date: Thu, 23 Sep 2010 18:22:09 +0000 (UTC)
commit 315fda1c7232d255740f9bbff4ffde740b9ac567
Author: Colin Walters <walters verbum org>
Date: Wed Sep 22 14:10:04 2010 -0400
jsapi-util-string: Add missing JS_EndRequest
Found by visual inspection.
https://bugzilla.gnome.org/show_bug.cgi?id=630423
gjs/jsapi-util-string.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gjs/jsapi-util-string.c b/gjs/jsapi-util-string.c
index d3ae73b..729ac9c 100644
--- a/gjs/jsapi-util-string.c
+++ b/gjs/jsapi-util-string.c
@@ -317,6 +317,7 @@ gjs_string_get_binary_data(JSContext *context,
if (!JSVAL_IS_STRING(value)) {
gjs_throw(context,
"Value is not a string, can't return binary data from it");
+ JS_EndRequest(context);
return JS_FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]