You are storing bad data here, invite will be destroyed when this thing goes out of scope, and the pointer that you stored with AddInvite will become invalid.