qapi: fix build on glib < 2.28
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 16 Jun 2014 15:07:03 +0000 (18:07 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 15:44:21 +0000 (18:44 +0300)
commit0d156683f667ef20fa20abc21e85ee776e6c1472
treed74cc1878e458078331a949f961a980e133ba00b
parent69e255635d0126dcce60b17454a7ec23e7afc174
qapi: fix build on glib < 2.28

The following commits:
    qapi: make string output visitor parse int list
    qapi: make string input visitor parse int list
break with glib < 2.28 since they use the
new g_list_free_full function.

Open-code that to fix build on old systems.

Cc: Hu Tao <hutao@cn.fujitsu.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
qapi/string-input-visitor.c
qapi/string-output-visitor.c