#8587 closed patch (fixed)
Segfault when destroying an engine twice
Reported by: | jvprat | Owned by: | fingolfin |
---|---|---|---|
Priority: | normal | Component: | --Other-- |
Version: | Keywords: | ||
Cc: | Game: |
Description
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.
Attachments (1)
Change History (4)
by , 18 years ago
Attachment: | segfault.patch added |
---|
comment:1 by , 18 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 18 years ago
Thanks for pointing this out. I actually had planned to remove that "delete" when I moved the savefile manager -- but obviously I forgot :-(.
comment:3 by , 6 years ago
Component: | → --Other-- |
---|
Note:
See TracTickets
for help on using tickets.
Don't delete _saveFileMan at Engine destruction