From 4085b87ff0a26e6db7d95a82fcdff861046e6308 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lureau?= Date: Mon, 26 Jul 2021 10:32:37 +0400 Subject: [PATCH] option: add g_auto for QemuOpts MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Used in the next commit. Signed-off-by: Marc-André Lureau Acked-by: Gerd Hoffmann --- include/qemu/option.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/qemu/option.h b/include/qemu/option.h index 306bf07575..bbd86e1c4e 100644 --- a/include/qemu/option.h +++ b/include/qemu/option.h @@ -150,4 +150,6 @@ QDict *keyval_parse(const char *params, const char *implied_key, bool *help, Error **errp); void keyval_merge(QDict *old, const QDict *new, Error **errp); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(QemuOpts, qemu_opts_del) + #endif -- 2.11.0