Edit Mode Memory Leak

roshan_Ex
Fri, 16 Jul 2021 08:02:14 +0000
Community & Industry Discussion

FSkeletalAnimationTrackEditMode::FSkeletalAnimationTrackEditMode()
: bIsTransacting(false)
, bManipulatorMadeChange(false)
, RootTransform(FTransform::Identity)
{
FSkeletalAnimationTrackEditModeTool* EdModeTool = new FSkeletalAnimationTrackEditModeTool(this);

	Tools.Add(EdModeTool);
	SetCurrentTool(EdModeTool);
}

FSkeletalAnimationTrackEditMode::~FSkeletalAnimationTrackEditMode()
{
}

add tools by new but without delete. There are also have many others edit mode tools, new tool but didn’t call delete!
I set the break point on tool’s destruction function, but it never hit.
I hope i’m wrong!

2 posts - 1 participant