Skip to content

Bitmaps used in QueryContextMenu are leaked #2

Description

@chrdavis

The bitmap you pass to the menu item is getting leaked every time the menu is invoked in explorer. Please move the HBITMAP to a class member of CMPCBEContextMenu, create it once in the constructor or on demand, and then call DeleteObject on it in the destructor.

The bitmaps returned from TransparentBMP are leaked.

SetMenuItemBitmaps(hmenu, indexMenu, MF_BYPOSITION, TransparentBMP(m_hPlayBmp), NULL);

SetMenuItemBitmaps(hmenu, indexMenu, MF_BYPOSITION, TransparentBMP(m_hAddBmp), NULL);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions