Possible Error in vtkCocoaGLView.mm

Hi there!

Thanks for developing VTK!

Actually im using vtk 9.2.6 on a new M2 (Mac mini 2023) on macOS Ventura (SDK 13.1, Ventura 13.4) and within my app an error occurs when destructing an QVTKOpenGLNativeWidget with QT 6.4.3. In the debugger it turns out that the problem is located in vtkCocoaGLView.mm in method dealloc(). Changing the method to

#if !VTK_OBJC_IS_ARC
- (void)dealloc
{
  [_rolloverTrackingArea release];
  [super dealloc];
}
#endif

just solved the problem for me. So it seems that release should run before dealloc.

Thanks!

Hello,

If you found a bug, you can report it here: https://gitlab.kitware.com/vtk/vtk/-/issues

regards,

PC