https://bugs.kde.org/show_bug.cgi?id=420302

Hartmut Riesenbeck <hartmut.riesenb...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/educ
                   |                            |ation/parley/commit/a7cff05
                   |                            |0be34b49623f54915f0271e0a84
                   |                            |7b3abf
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Hartmut Riesenbeck <hartmut.riesenb...@gmx.de> ---
Git commit a7cff050be34b49623f54915f0271e0a847b3abf by Hartmut Riesenbeck.
Committed on 10/11/2020 at 20:30.
Pushed by aacid into branch 'master'.

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.

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/a7cff050be34b49623f54915f0271e0a847b3abf

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to