When marking text and opening the edit text dialog and then rotating the device would result in references being kept to the edit text dialog and the memory would never get released again. Change-Id: I3e95083e4923844d2b496ea79174ef97e77f8686