Fixed memory leak using json-glib with record revisions