xamarin / SignaturePad

MIT License
245 stars 150 forks source link

Memory leak on Xamarin.iOS SignaturePadView #160

Open titusmoldovan opened 5 years ago

titusmoldovan commented 5 years ago

Description

The SignaturePadView is never collected by the ARC

Code

SignaturePadCanvas.StrokeCompleted += delegate { OnSignatureStrokeCompleted (); }; SignaturePadCanvas.Cleared += delegate { OnSignatureCleared (); };

Expected Behavior

The delegates should be removed in a "destroy method".

Actual Behavior

The delegates are added on Initialize, but never removed.

Basic Information

Screenshots

Reproduction Link

jyt1902 commented 5 years ago

Also same issue in UWP Signature pad