Memory leak with messaging system

when I want to publish message. i make a struct message with new because I need the pointer for it and then I publish it, like this:

FArrayCalculationMessage* MessageForGridSpacing = new FArrayCalculationMessage("GridSpacingOffsetToSet", GridSpacingOffsets, GetLevel()); MessageEndpointProperty->Publish<FArrayCalculationMessage(MessageForGridSpacing, EMessageScope::Process);

the problem I have is with memory leak cause when I try to delete the message after publish it crashes, I tried to save it and delete it after a time or when the next one is coming but all ended up in crashing. any help would be appreciated.