Stereo camera opencv segmentation fault during exit

Hi,
Do you hit segment fault with this sample:
OpenCV Video Capture with GStreamer doesn't work on ROS-melodic - #3 by DaneLLL
Or only happens when you call StereoBM functions?