Skip to content

Commit 68c8839

Browse files
committed
[GEN][ZH] Fix freeing reference counter pointer in laser draw.
1 parent ce0d1d2 commit 68c8839

File tree

2 files changed

+2
-0
lines changed
  • Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw
  • GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw

2 files changed

+2
-0
lines changed

Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DLaserDraw.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ W3DLaserDraw::~W3DLaserDraw( void )
234234
} // end for i
235235

236236
delete [] m_line3D;
237+
REF_PTR_RELEASE(m_texture);
237238
}
238239

239240
//-------------------------------------------------------------------------------------------------

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DLaserDraw.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ W3DLaserDraw::~W3DLaserDraw( void )
237237
} // end for i
238238

239239
delete [] m_line3D;
240+
REF_PTR_RELEASE(m_texture);
240241
}
241242

242243
//-------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)