Skip to content

Commit d17631a

Browse files
dimhotepusmastercoms
authored andcommitted
scratchpad3d: Fix leaks of heap-allocated CBaseCommand children deleted by base pointer
Closes ValveSoftware#745
1 parent e48ccb5 commit d17631a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/public/scratchpad3d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class CScratchPad3D : public IScratchPad3D
5151
m_pCachedRenderData = NULL;
5252
}
5353

54-
~CBaseCommand()
54+
virtual ~CBaseCommand()
5555
{
5656
ReleaseCachedRenderData();
5757
}

0 commit comments

Comments
 (0)