Protect lifetime of frame and frameView objects