https://bugs.kde.org/show_bug.cgi?id=420302
Albert Astals Cid <aa...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/educ |https://invent.kde.org/educ |ation/parley/commit/a7cff05 |ation/parley/commit/ad449a1 |0be34b49623f54915f0271e0a84 |e78de2f320afa4e02a9598e0778 |7b3abf |50cf42 --- Comment #3 from Albert Astals Cid <aa...@kde.org> --- Git commit ad449a1e78de2f320afa4e02a9598e077850cf42 by Albert Astals Cid, on behalf of Hartmut Riesenbeck. Committed on 11/11/2020 at 22:15. Pushed by aacid into branch 'release/20.12'. Fix segfault when leaving statistics main window Reproducible segfault when leaving statistics main window with unsaved changes and clicking on save in the query dialog. The segfault is thrown by KEduVocDocument pointer access which was deleted before during destruction of StatisticsMainWindow. Both document and widget are destructed by deleteLater. With the conditions mentioned above the order of destruction becomes to the document deleted first which leads to the segfault. The fix is done by changing the pointer for KEduVocDocument to a shared pointer which was not deleted until the last using class is deleted. (cherry picked from commit a7cff050be34b49623f54915f0271e0a847b3abf) M +0 -1 src/collection/containermodel.cpp M +1 -2 src/collection/readonlycontainermodel.cpp M +4 -2 src/collection/readonlycontainermodel.h M +7 -7 src/editor/editor.cpp M +1 -1 src/editor/editor.h M +3 -3 src/editor/inflectionwidget.cpp M +4 -2 src/editor/inflectionwidget.h M +2 -2 src/editor/summarywordwidget.cpp M +5 -3 src/editor/summarywordwidget.h M +2 -2 src/editor/vocabularydelegate.cpp M +2 -2 src/editor/vocabularydelegate.h M +3 -3 src/editor/vocabularyview.cpp M +3 -2 src/editor/vocabularyview.h M +18 -27 src/parleydocument.cpp M +4 -3 src/parleydocument.h M +7 -7 src/parleymainwindow.cpp M +1 -1 src/parleymainwindow.h M +6 -6 src/practice/practicestatemachine.cpp M +1 -1 src/scripts/scripting/parley.cpp M +2 -2 src/statistics/lessonstatisticsview.cpp M +5 -4 src/statistics/statisticsmainwindow.cpp M +5 -3 src/statistics/statisticsmainwindow.h M +3 -3 src/statistics/statisticsmodel.cpp M +2 -2 src/statistics/statisticsmodel.h https://invent.kde.org/education/parley/commit/ad449a1e78de2f320afa4e02a9598e077850cf42 -- You are receiving this mail because: You are watching all bug changes.