I create huge blobs in the client which the user can download as files.
The following example is just to demonstrate the issue
var x= "sdfslkdfjklsdjiflskdflsdf" ; for(var i = 0; i<19;i++) x=x+x
var blob = new Blob([x,x,x,x,x,x,x,x,x,x,x,x,x], {
type : "text/plain"
});
This will use up a lot of memory. When I'm done with the blob I would like to free up that memory. (I'm testing this in IE11 Edge)
Running this script twice will fail as no more memory can be allocated
I've already tried setting blob = null
or using delete blob
, nothing happens to the memory.
How to free up the memory?