ensure to free new VRAM transfer data in NCER parser

This commit is contained in:
Joshua Smith 2024-10-27 18:50:43 -05:00
parent 819153913a
commit ada2b83bc1

8
json.c
View File

@ -641,6 +641,14 @@ void FreeNCERCell(struct JsonToCellOptions *options)
}
free(options->labels);
}
if (options->vramTransferEnabled)
{
for (int j = 0; j < options->cellCount; j++)
{
free(options->transferData[j]);
}
free(options->transferData);
}
free(options->cells);
free(options);
}