diff options
author | portix <none@none> | 2012-10-10 21:04:35 +0200 |
---|---|---|
committer | portix <none@none> | 2012-10-10 21:04:35 +0200 |
commit | d1a04d4651e4eeb2578d1dfd27a8192ee355926b (patch) | |
tree | d14d5eee110fe75a69fe137096a54e388b36148e /src | |
parent | 57394119793abec65946499c879ec59be0fed733 (diff) | |
download | dwb-d1a04d4651e4eeb2578d1dfd27a8192ee355926b.zip |
Always unprotect callback function in request_callback
Diffstat (limited to 'src')
-rw-r--r-- | src/scripts.c | 2 |
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) { |