Fix bug in the Cadence/DEF parser, occuring on the PathCbk.

* Bug: In def/def_keywords.cpp, in defrData::pathIsDone(), the attribute
    defrData.PathObj was *forcibly* deleted directly inside the defrData
    class (with defrData remaining allocated). Either there is something
    I enterily miss or this is a big blunder.
      This was causing DefImport parser to crash, when activating the
    Path callback.
This commit is contained in:
Jean-Paul Chaput 2021-11-06 11:40:48 +01:00
parent 846ac49ab8
commit 92484ccbb2
1 changed files with 1 additions and 1 deletions

View File

@ -1350,7 +1350,7 @@ defrData::pathIsDone(int shield, int reset, int netOsnet, int *needCbk)
//defrPath->reverseOrder();
(*callbacks->PathCbk)(defrPathCbkType, &PathObj, session->UserData);
PathObj.Destroy();
free((char*) &PathObj);
//free((char*) &PathObj);
}
PathObj.Init();