zackexplosion / swfobject

Automatically exported from code.google.com/p/swfobject
1 stars 0 forks source link

Memory Leak - Fix Provided. #652

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Playing .mp3 files using dewplayer-mini
2. Running the script through IEJSLeaksDetector

What is the expected output? What do you see instead?
No Leaks. Leak at point: 
var i=c("__ie_ondomload");if(i){i.onreadystatechange=function(){..}}

What version of the product are you using? On what operating system?
Windows 7 + Windows Server

Please provide any additional information below.
Add the following line:
i.onreadystatechange=null;
After the last curly bracket (}) outlined above. 
Making it:

...MORE_ABOVE..
var i=c("__ie_ondomload");
if(i){i.onreadystatechange=function(){
    if(this.readyState=="complete"){
        this.parentNode.removeChild(this);V()}
    }
}
i.onreadystatechange=null;
}catch(j)
...MORE_BELOW..

Regards

Original issue reported on code.google.com by xbadnm...@gmail.com on 4 Feb 2013 at 5:58