mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0024276: Memory leak due to a static variable
Cleaning of selected entities to avoid a memory leak.
This commit is contained in:
@@ -149,6 +149,9 @@ myIsAutoActivateSelMode( Standard_True )
|
||||
|
||||
void AIS_InteractiveContext::Delete() const
|
||||
{
|
||||
//Clear the static current selection. Else the memory
|
||||
//is not release
|
||||
AIS_Selection::ClearCurrentSelection();
|
||||
#ifdef OCC172
|
||||
// to avoid an exception
|
||||
if ( AIS_Selection::Find( mySelectionName.ToCString() ) )
|
||||
|
Reference in New Issue
Block a user