Fixed the memory leak.

Fixed the memory leak. It was caused by not properly disposing of a
point object.