Skip to content

Commit

Permalink
Free resources on TerrainTracksRenderObjClass destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Sep 18, 2024
1 parent 0574116 commit 2bc575c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/w3dengine/client/w3dterraintracks.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2bc575c

Please sign in to comment.