3.5.1中关于内存泄漏的描述 #503
swellingWu
started this conversation in
内容建议
Replies: 1 comment
-
后面还有一句同理可得。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在 main 函数结束前,a 和 b 的引用计数均是 2,随后 b 触发 Drop,此时引用计数会变为 1
应当是a和b的计数器都变为1吧,还是说我理解错了,这里写一个b会不会有些误导了(新手)
Beta Was this translation helpful? Give feedback.
All reactions