Fix memory leak in PLY writing
If PLY writer got an invalid output file path (e.g., read-only location) then the vtkHeap object was not deleted.
If PLY writer got an invalid output file path (e.g., read-only location) then the vtkHeap object was not deleted.