Fix memory link in particle flow algorithms
It was pointed out by @mvesteri and @wbarter that the current particle flow algorithm contains a small memory leak that can cause some issues. I've tracked this back to an issue in one of the proto particle filters and these changes should fix it. Will just do some quick checks first to make sure nothing has changed and the leak is gone.