Fixed #15 memory leak by introducing virtual function into all operation base classes to ensure the dependent class destructors are called
This commit is contained in:
parent
d4cc61817e
commit
5be21da7c2
9 changed files with 114 additions and 35 deletions
|
|
@ -54,7 +54,7 @@ class OpBase
|
|||
* intended to destroy the resources in the parent class. This can be done
|
||||
* by passing the mFreeTensors=false.
|
||||
*/
|
||||
~OpBase()
|
||||
virtual ~OpBase()
|
||||
{
|
||||
SPDLOG_DEBUG("Kompute OpBase destructor started");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue