I’m using the nativescript-drawingpad plugin, based on android-signaturepad and I am facing a memory leak in android: every time a draw on the pad, one byte element that is never cleared is added in java memory. With Android profiler it look like:
After some reserach, I think I found the issue in the android-signaturepad plugin: it look like some element is not recycle in java code.
But my question is more genral: how can I clear the android-signaturepad in memory when I change page ? To start a new instance from scratch the next time: is there a way to clean the whole object ?