Appbase:fix 2 memory Leaks, debug exit
Appbase:fix memory Leak