fix the problem of destroying a builder object (#1443)

This commit is contained in:
spacewalk01 2024-02-28 17:48:11 +09:00 committed by GitHub
parent 432a6729a7
commit 4dae28be20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -236,6 +236,7 @@ void APIToModel(unsigned int maxBatchSize, IHostMemory** modelStream) {
// Close everything down
engine->destroy();
config->destroy();
builder->destroy();
}

View File

@ -255,6 +255,7 @@ void APIToModel(unsigned int maxBatchSize, IHostMemory** modelStream) {
// Close everything down
engine->destroy();
config->destroy();
builder->destroy();
}