Freed two variables that when calling function: watershed created a memo...

...ry leak

Tested that the watershed outcome with freeimage lines added is the same as before.