It declares an autoptr for the instance.
Signed-off-by: Marc-André Lureau <[email protected]>
---
docs/devel/qom.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst
index 935bb1004a78..9e467b6df857 100644
--- a/docs/devel/qom.rst
+++ b/docs/devel/qom.rst
@@ -328,7 +328,7 @@ This is equivalent to the following:
typedef struct MyDevice MyDevice;
typedef struct MyDeviceClass MyDeviceClass;
- G_DEFINE_AUTOPTR_CLEANUP_FUNC(MyDeviceClass, object_unref)
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(MyDevice, object_unref)
#define MY_DEVICE_GET_CLASS(void *obj) \
OBJECT_GET_CLASS(MyDeviceClass, obj, TYPE_MY_DEVICE)
--
2.56.0.rc0.29.g47ce80527c56