var recycleObject = function(object) { if (null != object) { try { object.recycle() } catch (e) {} object = null; } }