prevent memory leaks when objects alloc memory.