From 24718fab984714ce713e9643c0dca6c7fa87c537 Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:56:24 +0200 Subject: [PATCH] Free resources on TerrainTracksRenderObjClass destruction --- src/platform/w3dengine/client/w3dterraintracks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/w3dengine/client/w3dterraintracks.h b/src/platform/w3dengine/client/w3dterraintracks.h index fb89735c0..21f03bb4d 100644 --- a/src/platform/w3dengine/client/w3dterraintracks.h +++ b/src/platform/w3dengine/client/w3dterraintracks.h @@ -33,7 +33,7 @@ class TerrainTracksRenderObjClass : public W3DMPO, public RenderObjClass public: TerrainTracksRenderObjClass(); - virtual ~TerrainTracksRenderObjClass() override {} + virtual ~TerrainTracksRenderObjClass() override { Free_Terrain_Tracks_Resources(); } virtual RenderObjClass *Clone() const override { return nullptr; } virtual int Class_ID() const override { return CLASSID_TERRAINTRACKS; } virtual void Render(RenderInfoClass &rinfo) override;