Segfault when destroying an engine twice
|Reported by:||jvprat||Owned by:||fingolfin|
The Engine destructor deletes _saveFileMan, which is just a reference to a system object. If an engine fails to start, and you try to start it again (failing again), the second time the reference to _saveFileMan is invalid, and it segfaults when trying to delete it again. The attached patch solves it.
Ticket imported from: #1595240. Ticket imported from: patches/692.