mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 17:08:35 +02:00
[script] Dereference on assign without affecting refcount
Assigns were incorrectly dereferencing creating an incorrect refcount.
This commit is contained in:
parent
cf8c99c38f
commit
f66f6078c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue