Fix crashes in KUrlNavigator that are caused by accesses to objects which have been deleted in nested event loops

Review Request #118858 - Created June 21, 2014 and submitted

Information
Frank Reininghaus
kdelibs
KDE/4.13
293863
Reviewers
kdelibs
KUrlNavigator opens menus with exec() in a few places, and accesses member variables or pointers to children after that. This can cause crashes if the object has been deleted inside the nested event loops.

This can be fixed by using QPointers to detect if an object was deleted already, and return immediately in that case.
Cannot reproduce the crashes any more. The menus in KUrlNavigator still work fine for me.
Christoph Feck
Dominik Haumann
Frank Reininghaus
Commit Hook
Frank Reininghaus
Review request changed

Status: Closed (submitted)

Loading...