Using delete instead of free.