memory leak in javascript

Bug #1172320 reported by David Zahn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Midori Web Browser
Expired
Undecided
Unassigned

Bug Description

I have some javascript code in a webpage that is causing Midori to leak memory. The code is responsible for loading pictures from an array into an IMG tag on the webpage. The relevant code is as such:

var pictureArchive= ['media/Template1.png','media/Template2.png','media/Template3.png'];

function rotate(idx) {
    if(idx>=pictureArchive.length) {
 idx=0;
    }
document.getElementById('image').src=pictureArchive[idx];
idx++;
timerID=setTimeout('rotate('+idx+')', 4000);
}

The HTML document is on the local file system and is referencing PNG files in a subdirectory. I included the full HTML file as an attachment.

Thanks,

Dave

Revision history for this message
David Zahn (dczahn) wrote :
Revision history for this message
Danielle Foré (danrabbit) wrote :

I'm pretty sure this is going to be a libjavascript core issue and not really a Midori issue. OP, can you still reproduce this bug will a fully updated system? If so can you post the information found at about:version please

Changed in midori:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Midori because there has been no activity for 60 days.]

Changed in midori:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.