So I've recently setup a chrome extension to refresh a page and call a jsonp web service I've written but there is a memory leak. I've searched all of the internet to find solutions and nothing seems to work. I've used the plain jQuery .ajax() call specifying "jsonp", I've used jquery-jsonp found at http://code.google.com/p/jquery-jsonp/, and a slew of other methods...I cannot get the memory leak to disappear. Can someone point me to an example that does what I'm looking for or point me in the right direction? I just need to see a script constantly call a jsonp call and not leak memory.
when running my code there is no leaks until i reach this code:
$.jsonp({
url: serviceUrl + "/AddPick?callback=?&" + jQuery.param(json),
success: function (returned, textStatus) {
callback({ "d": returned.d, "pickCount": pickCount });
}
});
if i replace that code with: callback({ "d": "1", "pickCount": pickCount });
then the leak goes away.