Modern.Forms icon indicating copy to clipboard operation
Modern.Forms copied to clipboard

Memory leak due to event handler

Open ghost opened this issue 5 years ago • 2 comments

Here's a memory leak: https://github.com/modern-forms/Modern.Forms/blob/51f917aea77b2ae4fe88eadd18988fb3633402fd/src/Modern.Forms/Control.cs#L53

ghost avatar May 15 '20 10:05 ghost

Nice catch! I'll have to give some thought to how I want to fix this.

jpobst avatar May 16 '20 01:05 jpobst

Sound like singleInstance add handler once again. Maybe should remove it before add or only add once.

jzlhll avatar May 18 '20 02:05 jzlhll