Remove the view pointer *before* setting it to null.
Remove the view pointer *before* setting it to null.

Should fix a crash here, this looks like the obvious cause.

hlamer/kate,cmacq2/kate,hlamer/kate,DickJ/kate,DickJ/kate,hlamer/kate,cmacq2/kate,hlamer/kate,sandsmark/kate,cmacq2/kate,DickJ/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,hlamer/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,DickJ/kate,sandsmark/kate,hlamer/kate,jfmcarreira/kate,sandsmark/kate,sandsmark/kate