srmainwaring / asv_wave_sim

This package contains plugins that support the simulation of waves and surface vessels in Gazebo.
GNU General Public License v3.0
122 stars 34 forks source link

Fix segfault on server exit #56

Closed srmainwaring closed 2 years ago

srmainwaring commented 2 years ago

This PR fixes a segfault on exit when running the wave simulation server.

This is a partial fix for #55.

Details

The segfault arises from an invalid pointer read in the WavesVisual destructor. This change adds checks the Ogre pointers are not null.