title: Where to delete an object created by factory?
body: <p>If I have a factory, that creates an object and returns a pointer to it, what will be a better way to delete it:</p>
  
  <p>By <code>delete</code> call in the "user" code, or by a new <code>DestructObject</code> function which I should have together with the factory?</p>