Prevent from freeing objects twice.

When the STL container is being freed, it also frees all the objects which
it stores. We should remember it.