Simple, use pointers when you need the object to stay in memory. Regular objects are created on the stack, and thus destroyed quite quickly.