added an explicit delete of item list in a basket to eliminate a null ptr exception