[[ Memory Leaks ]] Prevent some potential memory leaks