diff mbox series

[PULL,v2,4/7] object: add g_autoptr support

Message ID 20200103090853.1014627-5-marcandre.lureau@redhat.com
State New
Headers show
Series [PULL,v2,1/7] console: add graphic_hw_update_done() | expand

Commit Message

Marc-André Lureau Jan. 3, 2020, 9:08 a.m. UTC
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
---
 include/qom/object.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/include/qom/object.h b/include/qom/object.h
index 1d7b7e5a79..54a548868c 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -1766,4 +1766,7 @@  Object *container_get(Object *root, const char *path);
  * Returns the instance_size of the given @typename.
  */
 size_t object_type_get_instance_size(const char *typename);
+
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(Object, object_unref)
+
 #endif