Unable to free memory used by DisplayImpl