Eliminated (array and objects) memory leaks.