Use a local pointer in eraseApplicatoin() - saves 18 Bytes