Quote Originally Posted by anda_skoa View Post
You are creating "UserApi friends" on the stack, it will be destroyed immediately after you call updateFriendsList().
Nice catch!