Skip to content
Permalink
Browse files
Added some memory leak protection.
  • Loading branch information
jeresig committed Jul 17, 2006
1 parent 2d31381 commit a03b3fd
Showing 1 changed file with 5 additions and 1 deletion.
@@ -170,8 +170,12 @@ jQuery.extend({

// Process result
if ( ret ) ret(xml);

// Stop memory leaks
xml.onreadystatechange = function(){};
xml = null;
}
}
};

// Send the data
xml.send(data);

0 comments on commit a03b3fd

Please sign in to comment.