Skip to content

Memory leaks #107

@probonopd

Description

@probonopd

Menu is leaking memory big time.

How can we analyze this?

So far I found out:

void findAppsInside(QStringList locationsContainingApps, QMenu *m_systemMenu,  QFileSystemWatcher *watcher);

leaks memory, especially (but not only) the icons that get set on the QActions. This can be seen by using Heaptrack.

  • What is the best way to fix this?
  • Do we need to refactor this functionality into a QObject?

Also, searching leaks a lot of memory. Unfortunately, this cannot be seen by using Heaptrack because Heaptrack stops profiling before we have a chance to operate the Search menu.

  • Why does Heaptrack profiling stop prematurely?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions