mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
string-output-visitor: Favor new visit_free() function
Now that we have a polymorphic visit_free(), we no longer need string_output_visitor_cleanup(); however, we still need to expose the subtype for string_output_get_string(). Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1465490926-28625-9-git-send-email-eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
b70ce1018a
commit
e7ca565629
7 changed files with 11 additions and 16 deletions
|
@ -1047,7 +1047,7 @@ static void qmp_deserialize(void **native_out, void *datap,
|
|||
static void qmp_cleanup(void *datap)
|
||||
{
|
||||
QmpSerializeData *d = datap;
|
||||
qmp_output_visitor_cleanup(d->qov);
|
||||
visit_free(qmp_output_get_visitor(d->qov));
|
||||
visit_free(d->qiv);
|
||||
|
||||
g_free(d);
|
||||
|
@ -1083,7 +1083,7 @@ static void string_cleanup(void *datap)
|
|||
{
|
||||
StringSerializeData *d = datap;
|
||||
|
||||
string_output_visitor_cleanup(d->sov);
|
||||
visit_free(string_output_get_visitor(d->sov));
|
||||
visit_free(d->siv);
|
||||
g_free(d->string);
|
||||
g_free(d);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue