Fixed some memory management issues in MADayView