Cleaning memory stuff.