No, it depends on the browser. As objects are deleted, the browser will (or at least should) free up associated memory. I would not charge for it.
In any case, if you do not do this a thousand times, I would not expect this to be a problem.
source share