Il 01/05/2012 20:18, Anthony Liguori ha scritto:
if (bus-qdev_allocated) {
-g_free(bus);
+object_delete(OBJECT(bus));
+} else {
+object_finalize(OBJECT(bus));
}
Time is ripe to add a more versatile freeing mechanism along the lines
you've set in the
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
hw/qdev.c | 84 +
1 files changed, 51 insertions(+), 33 deletions(-)
diff --git a/hw/qdev.c b/hw/qdev.c
index 166c599..f637351 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -434,40
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
hw/qdev.c | 84 +
1 files changed, 51 insertions(+), 33 deletions(-)
diff --git a/hw/qdev.c b/hw/qdev.c
index 42476e9..c37a701 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -433,40