X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/934c239d0815781f05245f4b88fd8ac3a73452d3..38be86f2f98073dafe8450220f250eccd8f5f827:/skins/fileupload.js?ds=inline diff --git a/skins/fileupload.js b/skins/fileupload.js index 2b6c4a8..c202bfe 100644 --- a/skins/fileupload.js +++ b/skins/fileupload.js @@ -93,6 +93,10 @@ DDFileUploader.prototype.uploadCompleteHandler = function(req) { var fragment = getCopyOfNode(req.responseXML.documentElement.firstChild); var img = fragment.getElementsByTagName('img')[0]; img.onload = function(evt) { + // accelerate GC before replacing + slide.img.src = ''; + slide.img.parentNode.removeChild(slide.img); + slide.img = undefined; slide.parentNode.replaceChild(fragment, slide); }; this.previewsLoaded--;