mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
fix memory leak
This commit is contained in:
parent
bb74e0584c
commit
38ec090964
@ -71,7 +71,7 @@ json_t *JS_OpenOptions(int lumpnum, boolean comments)
|
||||
}
|
||||
|
||||
json_t *json = yyjson_doc_get_root(json_doc);
|
||||
if (!json)
|
||||
if (json)
|
||||
{
|
||||
array_push(docs, ((doc_t){json_doc, lumpnum}));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user