Skip to content

Commit 0bdd035

Browse files
committed
Release texture on W3DLaserDraw destruction
1 parent baab9dd commit 0bdd035

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/w3dengine/client/drawable/draw/w3dlaserdraw.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ W3DLaserDraw::~W3DLaserDraw()
157157
}
158158

159159
delete[] m_line3D;
160+
161+
Ref_Ptr_Release(m_texture);
160162
}
161163

162164
float W3DLaserDraw::Get_Laser_Template_Width() const

0 commit comments

Comments
 (0)