DLL finished and leak free (might change return values of delete functions.