Fixed major memory leak (more unvirtualized destructors).