]> git.proxmox.com Git - mirror_qemu.git/blobdiff - migration/qjson.c
hw/vfio/ccw: avoid taking address members in packed structs
[mirror_qemu.git] / migration / qjson.c
index f3459049191d5015b52e49e064793a72f8b12efa..e9889bdcb0dfdd476489b6d778973a155282f017 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "qemu/osdep.h"
 #include "qapi/qmp/qstring.h"
-#include "migration/qjson.h"
+#include "qjson.h"
 
 struct QJSON {
     QString *str;
@@ -109,6 +109,6 @@ void qjson_finish(QJSON *json)
 
 void qjson_destroy(QJSON *json)
 {
-    QDECREF(json->str);
+    qobject_unref(json->str);
     g_free(json);
 }