Skip to content

Commit

Permalink
Bug fix for segfault iss #1795
Browse files Browse the repository at this point in the history
  • Loading branch information
hant-hub committed Dec 28, 2024
1 parent 46d2a66 commit f73b567
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion library/src/interactor_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,14 @@ interactor_impl::interactor_impl(options& options, window_impl& window, scene_im
}

//----------------------------------------------------------------------------
interactor_impl::~interactor_impl() = default;
interactor_impl::~interactor_impl() {
vtkOutputWindow::GetInstance()->RemoveObservers(
vtkF3DConsoleOutputWindow::TriggerEvent);
vtkOutputWindow::GetInstance()->RemoveObservers(
vtkF3DConsoleOutputWindow::ShowEvent);
vtkOutputWindow::GetInstance()->RemoveObservers(
vtkF3DConsoleOutputWindow::HideEvent);
}

//----------------------------------------------------------------------------
interactor& interactor_impl::initCommands()
Expand Down

0 comments on commit f73b567

Please sign in to comment.