Fix deallocation in integrals.
Merge pull request #102 from l-korous/master

Fix deallocation in integrals.