Don't delete the KPart in the MainWindow destructor
Review Request #107635 - Created Dec. 8, 2012 and discarded
Don't delete the KPart in the MainWindow destructor Details: This fixes the warning KXMLGUIClient::~KXMLGUIClient: 0x1c77eb8 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes. which appears when closing ark. See also https://bugs.kde.org/show_bug.cgi?id=261538#c32
Do you know if it is kdelibs' intention not to delete this kind of object? Valgrind complains the pointer is still reachable with this change, and it's why it was introduced in the first place.