The source code doesn't clear because you do not use new operator to instantiate the object, but you try to destroy using delete operator.