Skip to content

Instantly share code, notes, and snippets.

@cprcrack
cprcrack / gist:b592e0d8905c5706effd
Created June 30, 2014 10:37
Closures memory leak test
var functionRefs = [];
function callMeBack(callback)
{
setTimeout(callback, 100);
functionRefs.push(callback); // If I comment this, the leak dissapears!!! -> But I can't do this, it's handled by Parse
}