Fixes the memory leak in face detection.

For both agent and Reeti related methods, both Facedetection CPP and DLL files.