From e168de883e2b7af0b459081e62bec76a7c4db583 Mon Sep 17 00:00:00 2001 From: Charlie Brej Date: Wed, 24 Mar 2010 16:26:50 +0000 Subject: [PATCH] [script] Unref the correct element Typo in previous commit. Should have unreffed the hash and not the function object. --- src/plugins/splash/script/script-execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/splash/script/script-execute.c b/src/plugins/splash/script/script-execute.c index 19a831d0..702f8f7a 100644 --- a/src/plugins/splash/script/script-execute.c +++ b/src/plugins/splash/script/script-execute.c @@ -308,7 +308,7 @@ static script_obj_t *script_evaluate_func (script_state_t *state, { script_obj_t *string_hash = script_obj_hash_peek_element (state->global, "String"); func_obj = script_obj_hash_peek_element (string_hash, this_key_name); - script_obj_unref (func_obj); + script_obj_unref (string_hash); } if (!func_obj)