Nice and simple : "Delete closure variables after exiting functions to
prevent memory leaks"

Can't wait for approval from Danny Tupenny ;o)

@JR,BA

What about this little "trio" :

    var expando = "jQuery" + now(), uuid = 0, windowData = {};

just before :

    jQuery.extend({
        cache: {},

The same idiom will remove this leak ... If this is a leak ...

expando = uuid = windowData = null ;

Unless this might have detrimental effect on ... something ?

-- DBJ


On Apr 21, 8:44 pm, John Resig <[email protected]> wrote:
> Actually, r6310:http://dev.jquery.com/changeset/6310
>
> Thanks Brandon.
>
> --John
>
> On Tue, Apr 21, 2009 at 2:53 PM, Brandon Aaron <[email protected]> 
> wrote:
>
> > FYI... I just committed r6130 a fix for the memory leaks at runtime.
> > Please let me know if you find anymore leaks.
>
> > --
> > Brandon Aaron
>
> > On Apr 16, 8:18 am, Danny Tuppeny <[email protected]> wrote:
> >> Hi all,
>
> >> I've been using Drip to try and track down some memory leaks in my
> >> app, but as I started stripping code out, I discovered a simple blank
> >> page including jQuery seems to leak. The elements seem to be all those
> >> created by the jquery.support object (script, a, divs).
>
> >> Happens in IE7 and IE8. If you run Drip on the jquery.com homepage
> >> you'll see all the elements leaked.
>
> >> Is this a known issue? Is there any ETA for a fix?
>
> >> Our application is likely to be open in a browser for the entire day
> >> (with lots of page loads), so we're keen to plug any leaks. I can
> >> provide more info if needed, but just running Drip 0.5 on the
> >> jquery.com homepage should show what I'm talking about.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to