more aditons

added the  sgFreeKernel();   funtion on exit() function.
now its poping up an alert of uncleaned objects!! when program closes