Fixed memory leak in Organized Edge Detection

Hi,
after using the Organized Edge Detection over several frames, I discovered a memory leak in the Class Edge in 2D. Additionally there were similar leaks in Keypoints from 2D and in the example file.

Greets,
Nico