fix the problem of destroying a builder object (#1443)
This commit is contained in:
parent
432a6729a7
commit
4dae28be20
@ -236,6 +236,7 @@ void APIToModel(unsigned int maxBatchSize, IHostMemory** modelStream) {
|
|||||||
|
|
||||||
// Close everything down
|
// Close everything down
|
||||||
engine->destroy();
|
engine->destroy();
|
||||||
|
config->destroy();
|
||||||
builder->destroy();
|
builder->destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -255,6 +255,7 @@ void APIToModel(unsigned int maxBatchSize, IHostMemory** modelStream) {
|
|||||||
|
|
||||||
// Close everything down
|
// Close everything down
|
||||||
engine->destroy();
|
engine->destroy();
|
||||||
|
config->destroy();
|
||||||
builder->destroy();
|
builder->destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user