Feature: More warning burndown

This commit is contained in:
Vicki Pfau 2022-07-02 03:17:58 -07:00
parent e03e48f9c6
commit 977b184ecb
2 changed files with 11 additions and 3 deletions

View File

@ -260,8 +260,16 @@ bool NoIntroDBLoadClrMamePro(struct NoIntroDB* db, struct VFile* vf) {
free((void*) buffer.name);
free((void*) buffer.romName);
free((void*) dbType);
free((void*) dbVersion);
if (dbType) {
free(dbType);
}
if (dbVersion) {
free(dbVersion);
}
if (fieldName) {
free(fieldName);
}
sqlite3_finalize(gamedbTable);
sqlite3_finalize(gamedbDrop);

View File

@ -92,7 +92,7 @@ bool mUpdaterInit(struct mUpdaterContext* context, const char* manifest) {
ConfigurationInit(&context->manifest);
struct VFile* vf = VFileFromConstMemory(manifest, strlen(manifest) + 1);
bool success = vf && ConfigurationReadVFile(&context->manifest, vf);
bool success = ConfigurationReadVFile(&context->manifest, vf);
vf->close(vf);
if (!success) {
ConfigurationDeinit(&context->manifest);