summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Brej <cbrej@cs.man.ac.uk>2010-03-24 16:26:50 +0000
committerCharlie Brej <cbrej@cs.man.ac.uk>2010-03-24 16:26:50 +0000
commite168de883e2b7af0b459081e62bec76a7c4db583 (patch)
tree8c44f74ea166396927fbb6af119341f34d027f32
parentfe2ec6ffbf882cedaf361d47eba47d32cd2d6a78 (diff)
[script] Unref the correct element0.8.0
Typo in previous commit. Should have unreffed the hash and not the function object.
-rw-r--r--src/plugins/splash/script/script-execute.c2
1 files changed, 1 insertions, 1 deletions
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)