qjson: free str

Release the qstring allocated in qjson_new().

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Marc-André Lureau 2016-07-15 10:41:03 +02:00
parent 9d324b0e67
commit df37dd6ffe
1 changed files with 1 additions and 0 deletions

View File

@ -109,5 +109,6 @@ void qjson_finish(QJSON *json)
void qjson_destroy(QJSON *json)
{
QDECREF(json->str);
g_free(json);
}