Skip to content

UpDownBaseTests are severely leaking #13596

Open
@Youssef1313

Description

@Youssef1313

There is a severe memory leak in some UpDownBaseTests.

Image

As shown in this trace, there are subscriptions to UserPreferenceChanged that are never unsubscribed.

One example is UpDownBase_OnHandleCreated_Invoke_CallsHandleCreated which manually calls OnHandleCreated (which subscribes to the event), but never calls OnHandleDestroyed.

Alternatively, might be worth try calling CreateHandle instead of OnHandleCreated, so that Dispose can see that a handle is created and then it can destroy properly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions