Commit e0ea457f authored by Steve Bennett's avatar Steve Bennett
Browse files

core: avoid rare crash on shutdown



If deferred commands run on shutdown as stack frames
are unwound, it is possible that a command
is deleted but a later command still has a reference to it.
So instead of trying to optimise this case by freeing immediately,
cache deleted commands and let the be freed once all stack frames
are destroyed.

Signed-off-by: default avatarSteve Bennett <steveb@workware.net.au>
parent 0c855d13
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment