Fixed memory leak

In Face detection CPP and DLL