IE Memory leak in code

I am trying to find the source of a memory leak. I think it might be the following code. Would this produce a leak? Its called via a link onclick=“return FillOrder(‘1234’)”


var FillOrder = new function() {
	
	this.ID = 0;
	
	this.fill = function(ID) {
		var self = FillOrder;
		self.ID=ID;

		var dataStr='do=fillEntire&orderID='+self.ID;
		$.ajax({
			type: 'POST',
			url: 'process/inventory_fillorders.php?',
			data: dataStr,
			success: function(xml){FillOrder.Success(xml);},
			error:function (xhr, ajaxOptions, thrownError){
				self.Error(xhr.status+' '+thrownError,'true');
				return false;
			}
		});		
		return false;
	}	
	this.Success = function(respXML) {
		var self = FillOrder;
		if(!$.isXMLDoc(respXML))
		{
			self.Error('Processing error.','true');
			return false;
		}
	
		//order filled code here removed

		return false;
	}
	this.Error = function(message, log) {
		var self = FillOrder;
		
		//log error code removed

		return false;
	}
}

I don’t think that the code is even valid.

The code results in a FillOrder object being created, but the onclick event wants to execute a function instead.

Do you have a working demo of a page, that can be used to demonstrate the problem you are wanting to explore?

Sorry the link should be onclick=“return FillOrder.fill(‘1234’)” calling the FillOrder.fill(ID) function. The whole things works fine function wise. It just causes a memory leak in IE after a while.