Review Request 120783: Remove KXMLGUIClient warning in Ark

Elvis Angelaccio elvis.angelaccio at kdemail.net
Fri Oct 24 15:32:19 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120783/
-----------------------------------------------------------

Review request for KDE Utils and Raphael Kubo da Costa.


Repository: ark


Description
-------

When Ark is run from a terminal, the following warning is displayed on exit:
`ark(6384)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x101cf80 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.`

The warning is fixed by just removing the client from the KXMLGUIFactory, in the `Part` destructor.
A similar fix has been done in other apps, e.g. see [Kate](https://projects.kde.org/projects/kde/applications/kate/repository/revisions/4c56004ebbc5b1edb2c94d358c623015f10a1a3d).

This was one of the two unrelated patches that were in this other [review](https://git.reviewboard.kde.org/r/120216/).
The other one [has been already committed](http://quickgit.kde.org/?p=ark.git&a=commit&h=8fc15207c00aadeb3cee58ab68e443a7966291df) to the frameworks branch, so I guess we can ignore it for master.


Diffs
-----

  part/part.cpp 09fe1cbfcc7f4345fe12932055dcb041f50abb7b 

Diff: https://git.reviewboard.kde.org/r/120783/diff/


Testing
-------

Compile and run Ark from Konsole. The warning is gone.


Thanks,

Elvis Angelaccio

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20141024/3fd26b74/attachment.html>


More information about the Kde-utils-devel mailing list