when new-ing you should delete
Merge pull request #4142 from davidlange6/fix_dqm_memory_leaks

when new-ing you should delete