Commit 6a312085 authored by Konrad Materka's avatar Konrad Materka
Browse files

[libdbusmenuqt] Fix memory leak

QAction is not a widged, so it is not possible to set it as a parent of QMenu.
As a result, QMenu assigned to QAction is not automatically deleted when action is removed from menu and/or deleted.
parent dcaa4cfc
......@@ -414,6 +414,9 @@ void DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher *watcher)
// which can happen when an application completely reloads this menu.
// When the action is deleted deferred, it is removed from the menu.
if (action->menu()) {
Markdown is supported
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