function f() {
// some code.. then:
var bloburl = URL.createObjectURL(canvasToBlobOutput)
// I could would do the following line, but assume I don't
// imgElement.src = bloburl;
// will this leak memory?
}
If I would uncomment the imgElement.src line, I understand that the img element would "hook" the blob object in memory. But if we would run the function like it is (without this line), I dont see a reason why the bloburl
could not be GCed? as we have no reference to it after the function.