Fix crash based on "random" destruction order
ClosedPublic

Authored by cullmann on Jul 21 2017, 5:44 PM.

Details

Summary

See bug 381284, actionmenu might end up trying to delete objects already cleaned up by the parent as it has the same parent as the actions it manages.

Diff Detail

Repository
R39 KTextEditor
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
cullmann created this revision.Jul 21 2017, 5:44 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 21 2017, 5:44 PM
Restricted Application added a subscriber: kwrite-devel. · View Herald Transcript
kfunk accepted this revision.Jul 21 2017, 7:07 PM

I can't reproduce the crash even without this patch anymore :\

I can't reproduce it *with* this patch either. The patch makes sense given my backtrace in the bug report => ship it!

This revision is now accepted and ready to land.Jul 21 2017, 7:07 PM
This revision was automatically updated to reflect the committed changes.