OK, after all I think it is an issue in unity-panel-service. ownCloud does strange things: it unregisters and re-registers its tray icon periodically. This results in creating new indicator items every time. The new items are added to the menu by gtk_menu_shell_append call in panel_service_show_entry_common function. However, then the old indicator items get removed, the menu items are not removed (there is no corresponding gtk_container_remove call), they are just hidden by unsetting their entry2geometry hashes.
I hope Unity developers will be able to look at this more closely, and I will backport the upstream fix for ownCloud for the time being. ** Also affects: owncloud (Ubuntu) Importance: Undecided Status: New ** Changed in: owncloud (Ubuntu) Importance: Undecided => High ** Changed in: owncloud (Ubuntu) Assignee: (unassigned) => Dmitry Shachnev (mitya57) ** Changed in: owncloud (Ubuntu) Status: New => In Progress ** Changed in: libdbusmenu (Ubuntu) Assignee: Unity Team (unity-team) => (unassigned) ** Also affects: libdbusmenu (Ubuntu Yakkety) Importance: Undecided Status: New ** Also affects: owncloud (Ubuntu Yakkety) Importance: Undecided Status: New ** Changed in: owncloud (Ubuntu Yakkety) Assignee: (unassigned) => Dmitry Shachnev (mitya57) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1635577 Title: memory leak in unity-panel-service To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/owncloud/+bug/1635577/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs