Fix a memory leak in _CPImageAndTextView.  This closes #1888.