Use pointers ie:
delete must be used in conjunction with new.
Code:
myobject *obj = new myobject;
//do stuff with obj using the -> operator and not the . operator
//I'm done with obj lets get rid of it
delete obj;