]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[script] Dereference on assign without affecting refcount
authorCharlie Brej <cbrej@cs.man.ac.uk>
Mon, 22 Jun 2009 15:37:58 +0000 (16:37 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Mon, 22 Jun 2009 15:37:58 +0000 (16:37 +0100)
Assigns were incorrectly dereferencing creating an incorrect refcount.

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

index 4e017cf58afc6358039bdeb47fc6968261389718..5a56d5e8b74108690cad58e24bd2cf7568c89bfc 100644 (file)
@@ -349,8 +349,8 @@ char* script_obj_as_string (script_obj* obj)              // reply is strdupped
 
 void script_obj_assign (script_obj* obj_a, script_obj* obj_b)
 {
- script_obj_deref (&obj_b);
  script_obj_reset (obj_a);
+ obj_b = script_obj_deref_direct (obj_b);
  
  switch (obj_b->type){
     case SCRIPT_OBJ_TYPE_NULL: