問題描述
在我的應用程序中,我有一個滾動視圖和四個表格視圖.每次拖動然后釋放,我都會得到一個 48 字節的泄漏.這真的加起來了.如您所見,兩組泄漏具有相同的來源.有沒有人見過這樣的泄漏?
In my app I have a scroll view and four table views. Each time one is dragged and then released, I get a 48 byte leak. This really adds up. As you can see, both groups of leaks have the same source. Has anyone seen a leak like this before?
當我單擊泄漏旁邊的箭頭時,我會得到有關泄漏的以下信息:
When I click on the arrow next to the leak, I get this information for the leak:
推薦答案
您看到的是 iOS 5.1 中的一個已知錯誤,并且正在 iOS 開發者論壇中進行討論.您可以通過在論壇中搜索strdup"來找到相關主題.請參閱標題為Elements App Memory Leak"的主題.搜索來自 Apple 員工的帖子.
What you are seeing is a known bug in iOS 5.1 and is being discussed in the iOS Developer Forums as such. You can find the relevant thread by searching in the forums for "strdup". See the thread titled "Elements App Memory Leak". Search for the post from an Apple employee.
這篇關于每次釋放 UIScrollView 時內存泄漏的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!