Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.10.0
-
None
Description
I found there's no way to control the lifetime of the QScxmlStateMachine object. I'm trying to use QScxmlStateMachine for my widgets. Then I found that the memories occupied by the state machine will not be freed after my scxml document enters final state and widget got destroyed.
Then I create a very simple scxml document: An init state with an eventless transition to the final state.
And call the fromFile method in a loop. After loop finished, you will find that memory will not be free.
Maybe I should delete that state machine manually, but when I searched the documents, I can't find any useful information.