xamarin / SignaturePad

MIT License
246 stars 150 forks source link

SignatureView memory leak #15

Closed arthankamal closed 9 years ago

arthankamal commented 9 years ago

Signature view always persist in memory, when i analyzed using Instruments. When i looked into it in "Allocations", SignaturePadView (CALayer) Persistent count is keep on increasing every time when i push the viewcontroller, even after i pop the view controller, count is not going down.

arthankamal commented 9 years ago

Before i was using SignaturePadView component in Xamrin, but now i'm using SignaturePadView.cs UIGraphics.BeginImageContext does not have EndImageContext, so after getting UIImage from GetImageFromCurrentImageContext, i put the below code,

UIGraphics.EndImageContext ();