Bug Tracker

Opened 6 years ago

Closed 6 years ago

#12743 closed bug (notabug)

IE6 - events causes memory leak

Reported by: Drawk Owned by: Drawk
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc: dmethvin
Blocked by: Blocking:

Description

Attach an event to an element causes memory leaks on IE 6 (try refreshing the page several times) :

This bug is also present on version 1.7.*

Change History (6)

comment:1 Changed 6 years ago by Drawk

Source code :

<!DOCTYPE html>
<html>
    <head>
        <title>Memory Leak</title>
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
        <script type="text/javascript">
            $(function() {
                $('#test').on('click', function() {});
            });
        </script>
    </head>
    <body>
        <div id="test"></div>
    </body>
</html>

comment:2 Changed 6 years ago by Rick Waldron

Owner: set to Drawk
Status: newpending

Thanks for taking the time to contribute to the jQuery project! Can you move your test case to jsfiddle? thanks!

Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to begin.

comment:3 Changed 6 years ago by Drawk

Status: pendingnew

Thanks for your quick reply.

I forked your boilerplate and I put my code => http://jsfiddle.net/d4Rhf/1/

The memory leak still happens with the "jQuery (edge)" version.

comment:4 Changed 6 years ago by mikesherov

Cc: dmethvin added
Status: newpending

Thanks again for following up!

Does this also happen with non-empty function bodies? I'm unable to see the memory leak myself. Do you have any more information you can provide to help expose the issue? Are you seeing memory leaking in any of the other browsers?

comment:5 in reply to:  4 Changed 6 years ago by Drawk

Status: pendingnew

Replying to mikesherov:

Does this also happen with non-empty function bodies?

Yes.

Are you seeing memory leaking in any of the other browsers?

No, only on IE6

Today, I updated Windows XP on my test machine and it seems that Microsoft has fixed most of the problems of IE6 with that patch http://support.microsoft.com/kb/929874.

comment:6 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed

Yes, we only support the most recent fully patched IE6.

Note: See TracTickets for help on using tickets.