seg fault fixed, std::list* was used without "new".