From c532c529c07a524519257cf9cc1f4f7c2b24c954 Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:53:32 +0200 Subject: [PATCH] Release texture on W3DLaserDraw destruction --- src/platform/w3dengine/client/drawable/draw/w3dlaserdraw.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/w3dengine/client/drawable/draw/w3dlaserdraw.cpp b/src/platform/w3dengine/client/drawable/draw/w3dlaserdraw.cpp index 2a0f4edb5..fef43b565 100644 --- a/src/platform/w3dengine/client/drawable/draw/w3dlaserdraw.cpp +++ b/src/platform/w3dengine/client/drawable/draw/w3dlaserdraw.cpp @@ -157,6 +157,8 @@ W3DLaserDraw::~W3DLaserDraw() } delete[] m_line3D; + + Ref_Ptr_Release(m_texture); } float W3DLaserDraw::Get_Laser_Template_Width() const