summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2012-10-10 21:04:35 +0200
committerportix <none@none>2012-10-10 21:04:35 +0200
commitd1a04d4651e4eeb2578d1dfd27a8192ee355926b (patch)
treed14d5eee110fe75a69fe137096a54e388b36148e /src
parent57394119793abec65946499c879ec59be0fed733 (diff)
downloaddwb-d1a04d4651e4eeb2578d1dfd27a8192ee355926b.zip
Always unprotect callback function in request_callback
Diffstat (limited to 'src')
-rw-r--r--src/scripts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts.c b/src/scripts.c
index dce035f7..d22ed57d 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -836,8 +836,8 @@ request_callback(SoupSession *session, SoupMessage *message, JSObjectRef functio
JSObjectRef o = get_message_data(message);
JSValueRef vals[] = { o, make_object(m_global_context, G_OBJECT(message)) };
JSObjectCallAsFunction(m_global_context, function, NULL, 2, vals, NULL);
- JSValueUnprotect(m_global_context, function);
}
+ JSValueUnprotect(m_global_context, function);
}
static JSValueRef
global_send_request(JSContextRef ctx, JSObjectRef f, JSObjectRef thisObject, size_t argc, const JSValueRef argv[], JSValueRef* exc) {