From: Charlie Brej Date: Wed, 24 Mar 2010 16:26:50 +0000 (+0000) Subject: [script] Unref the correct element X-Git-Tag: 0.8.0^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e168de883e2b7af0b459081e62bec76a7c4db583;p=thirdparty%2Fplymouth.git [script] Unref the correct element Typo in previous commit. Should have unreffed the hash and not the function object. --- 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)