Re: [Qemu-devel] [PATCH] [TRIVIAL] Replace object_delete() with object_unref().

2012-02-17 Thread Stefan Hajnoczi
On Thu, Feb 16, 2012 at 6:12 PM, Peter Maydell wrote: > Object model lifecycle changes aren't trivial IMHO. > [no comment on actual patch contents implied] Agreed. Stefan

[Qemu-devel] [PATCH] [TRIVIAL] Replace object_delete() with object_unref().

2012-02-16 Thread Alexander Barabash
Replace object_delete() with object_unref(). In the existing implementation, object_delete() calls object_unref(), then frees the object's storage. Running object_delete() on an object with reference count different from one (1) causes program failure. In the existing im

Re: [Qemu-devel] [PATCH] [TRIVIAL] Replace object_delete() with object_unref().

2012-02-16 Thread Peter Maydell
Object model lifecycle changes aren't trivial IMHO. [no comment on actual patch contents implied] -- PMM On 16 February 2012 17:38, Alexander Barabash wrote: > >    Replace object_delete() with object_unref(). > >    In the existing implementation, object_delete() >    calls object_unref(), then