mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
Free JSON data after use.
This commit is contained in:
parent
5be2bc0694
commit
56b5848247
@ -178,6 +178,8 @@ static void task_populate_titledb_thread(void* arg) {
|
||||
} else {
|
||||
res = R_FBI_BAD_DATA;
|
||||
}
|
||||
|
||||
json_value_free(json);
|
||||
} else {
|
||||
res = R_FBI_PARSE_FAILED;
|
||||
}
|
||||
|
@ -229,6 +229,8 @@ static void update_check_update(ui_view* view, void* data, float* progress, char
|
||||
} else {
|
||||
res = R_FBI_BAD_DATA;
|
||||
}
|
||||
|
||||
json_value_free(json);
|
||||
} else {
|
||||
res = R_FBI_PARSE_FAILED;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user