Fix a subtle memory reference error in triangle

Transfer memory references after calling triangulate.
Merge remote-tracking branch 'origin/master' into ahmadia/fix_triangulate_bad_memory_reference
Merge pull request #116 from erdc-cm/ahmadia/fix_triangulate_bad_memory_reference

Fix triangulate bad memory reference