qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH qom v1 1/1] qom: object: remove parent pointer w


From: Peter Crosthwaite
Subject: Re: [Qemu-devel] [PATCH qom v1 1/1] qom: object: remove parent pointer when unparenting
Date: Mon, 2 Jun 2014 10:35:30 +1000

Ping!

On Tue, May 27, 2014 at 10:39 AM, Peter Crosthwaite
<address@hidden> wrote:
> Certain parts of the QOM framework test this pointer to determine if
> an object is parented. Nuke it when the object is unparented to allow
> for reuse of an object after unparenting.
>
> Signed-off-by: Peter Crosthwaite <address@hidden>
> ---
>
>  qom/object.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/qom/object.c b/qom/object.c
> index e42b254..8319e89 100644
> --- a/qom/object.c
> +++ b/qom/object.c
> @@ -402,6 +402,7 @@ void object_unparent(Object *obj)
>      if (obj->parent) {
>          object_property_del_child(obj->parent, obj, NULL);
>      }
> +    obj->parent = NULL;
>      object_unref(obj);
>  }
>
> --
> 1.9.3.1.ga73a6ad
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]