diff options
Diffstat (limited to 'python/gras')
-rw-r--r-- | python/gras/GRAS_Block.i | 3 | ||||
-rw-r--r-- | python/gras/GRAS_HierBlock.i | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/python/gras/GRAS_Block.i b/python/gras/GRAS_Block.i index b4d8293..84d6548 100644 --- a/python/gras/GRAS_Block.i +++ b/python/gras/GRAS_Block.i @@ -79,7 +79,8 @@ struct BlockPython : Block virtual ~BlockPython(void) { - //NOP + PyTSPhondler phil; + this->reset(); } void notify_active(void) diff --git a/python/gras/GRAS_HierBlock.i b/python/gras/GRAS_HierBlock.i index 12a5952..21d087e 100644 --- a/python/gras/GRAS_HierBlock.i +++ b/python/gras/GRAS_HierBlock.i @@ -45,7 +45,7 @@ struct TopBlockPython : TopBlock //NOP } - ~TopBlockPython(void) + virtual ~TopBlockPython(void) { PyTSPhondler phil; this->reset(); @@ -89,6 +89,12 @@ struct HierBlockPython : HierBlock { //NOP } + + virtual ~HierBlockPython(void) + { + PyTSPhondler phil; + this->reset(); + } }; } |