Skip to content
  • Hartmut Riesenbeck's avatar
    Fix segfault when leaving statistics main window · ad449a1e
    Hartmut Riesenbeck authored and Albert Astals Cid's avatar Albert Astals Cid committed
    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)
    ad449a1e