]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[script] Unref the correct element 0.8.0
authorCharlie Brej <cbrej@cs.man.ac.uk>
Wed, 24 Mar 2010 16:26:50 +0000 (16:26 +0000)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Wed, 24 Mar 2010 16:26:50 +0000 (16:26 +0000)
Typo in previous commit. Should have unreffed the hash and not the function
object.

src/plugins/splash/script/script-execute.c

index 19a831d0cbc597e840419d29bda54ca02d5b278c..702f8f7a56403e1711d28dfee5b0ced9ddce9df3 100644 (file)
@@ -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)