提交 8e3b77a0 编写于 作者: J Jiri Denemark

cpu: Properly define g_autoptr for virCPUData

The structure is not specific to x86 and thus its cleanup function
should be defined in cpu.h and be available to all users.
Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 62c27cfc
......@@ -182,6 +182,7 @@ virCPUDataNew(virArch arch);
void
virCPUDataFree(virCPUDataPtr data);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCPUData, virCPUDataFree);
bool
virCPUGetHostIsSupported(virArch arch);
......
......@@ -495,7 +495,6 @@ virCPUx86DataFree(virCPUDataPtr data)
virCPUx86DataClear(&data->data.x86);
VIR_FREE(data);
}
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCPUData, virCPUx86DataFree);
static void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册