Skip to content
Commit ad449a1e authored by Hartmut Riesenbeck's avatar Hartmut Riesenbeck Committed by Albert Astals Cid
Browse files

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.

BUG: 420302
(cherry picked from commit a7cff050)
parent 149cc565
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment