Skip to content

Commit 0dd5e23

Browse files
peri044narendasan
authored andcommitted
chore: Remove destroy calls in destructor as they are deprecated
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent 14691e7 commit 0dd5e23

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/runtime/TRTEngine.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ TRTEngine& TRTEngine::operator=(const TRTEngine& other) {
8585
}
8686

8787
TRTEngine::~TRTEngine() {
88-
delete exec_ctx;
89-
delete cuda_engine;
90-
delete rt;
91-
88+
delete exec_ctx;
89+
delete cuda_engine;
90+
delete rt;
9291
}
9392

9493
// TODO: Implement a call method

0 commit comments

Comments
 (0)