diff --git a/simgear/canvas/ODGauge.cxx b/simgear/canvas/ODGauge.cxx index 8a6b1421..5f371d22 100644 --- a/simgear/canvas/ODGauge.cxx +++ b/simgear/canvas/ODGauge.cxx @@ -297,8 +297,8 @@ namespace canvas { if( camera.valid() && Canvas::getSystemAdapter() ) Canvas::getSystemAdapter()->removeCamera(camera.get()); - camera.release(); - texture.release(); + camera = nullptr; + texture = nullptr; _flags &= ~AVAILABLE; }