wulfsolter / angular2-signaturepad

Angular2 Component for szimek / signature_pad
MIT License
176 stars 157 forks source link

Memory Leaks #87

Closed Akleiman12 closed 4 years ago

Akleiman12 commented 5 years ago

There seems to be a memory leak on the component, although I might be wrong and my implementation is causing problems. Im currently trying to destroy the parent component, which i can do, but the SignaturePad Object is persistent and wont be destroyed by the garbage collector. If I enter and exit the parent component several times, I can see new instances of signaturePad being stored but no new or preoviously persistent instances of the parent component. Is there any solution for this? Or is this a problem with the library?

Currently using:

OS: linux x64 ( Ubuntu 18.04.2)
Node.js: 8.10.0
npm: 5.6.0
Angular: 6.1.10
angular2-signaturepad: ^2.9.0
wulfsolter commented 5 years ago

Try not creating new instances - or if you must, to destroy old ones.