Webcore中的内存泄漏

时间:2012-06-14 20:17:56

标签: ios ios5 memory-management memory-leaks

我有一个相当奇怪的问题。当我在iOS 5.0中运行我的应用程序时,没有泄漏,但总分配持续增加,大约10KB /秒,而我没有做任何事情。我在应用程序中使用UIWebview。

我运行了仪器分配工具来获取数据并发现以下代码导致泄漏,但无法理解为什么这个代码似乎是一个不同的线程会导致它。它没有任何应用程序代码。这似乎根本不会发生在iOS 4.3上。任何帮助将不胜感激:

0 CoreFoundation __CFAllocatorSystemAllocate

1 CoreFoundation CFAllocatorAllocate

2 CoreFoundation __CFBasicHashRehash

3 CoreFoundation __CFBasicHashAddValue

4 CoreFoundation CFBasicHashAddValue

5 CoreFoundation CFSetAddValue

6 CoreFoundation CFRunLoopAddTimer

7 CoreFoundation __CFRunLoopAddItemToCommonModes

8 CoreFoundation __CFSetApplyFunction_block_invoke_0

9 CoreFoundation CFBasicHashApply

10 CoreFoundation CFSetApplyFunction

11 CoreFoundation CFRunLoopAddTimer

12 WebCore WebCore :: setSharedTimerFireTime(double)

13 WebCore WebCore :: MainThreadSharedTimer :: setFireTime(double)

14 WebCore WebCore :: ThreadTimers :: sharedTimerFiredInternal()

15 WebCore WebCore :: ThreadTimers :: sharedTimerFired()

16 WebCore WebCore :: timerFired(__ CFRunLoopTimer *,void *)

17 CoreFoundation CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION

18 CoreFoundation __CFRunLoopDoTimer

19 CoreFoundation __CFRunLoopRun

20 CoreFoundation CFRunLoopRunSpecific

21 CoreFoundation CFRunLoopRunInMode

22 WebCore RunWebThread(void *)

23 libSystem.B.dylib _pthread_start

24 libSystem.B.dylib thread_start

0 个答案:

没有答案