我也有这个问题。
The cache used by the iPad for preloading the video stream, was not emptied completely.
So each time, this page with the video player was cleaned up and released, the allocated memory after cleanup still contained the cached memory. For big video s, this could be up to 50 MB.
这实际上不是记忆泄露:
如果该网页再次开通,海滩就重新定位。 但是,由于你想要一个干净的退学状况,即当这一页被留下并清理时,这一页所用的一切记忆都应放开,包括用于拍摄录像流的记忆。
在经过一段严肃的每周工作之后,这一指挥顺序似乎做了以下工作:
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMoviePlayerPlaybackDidFinishNotification
object:myMoviePlayer];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMoviePlayerDidExitFullscreenNotification
object:myMoviePlayer];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMoviePlayerLoadStateDidChangeNotification
object:myMoviePlayer];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMovieDurationAvailableNotification
object:myMoviePlayer];
[myMoviePlayer pause];
myMoviePlayer.initialPlaybackTime = -1;
[myMoviePlayer stop];
myMoviePlayer.initialPlaybackTime = -1;
[myMoviePlayer.view removeFromSuperview];
[myMoviePlayer release];
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
步骤:
页: 1
2 - 电影
3 - 设定启动游击时间
4 - 停止电影
5 - 再次启动游乐
6 - 现在删除电影观点
7 - 最后释放电影演员
Resulting in my case in also the video cache memory being released on my iPad (OS 4.2.)
and leaving a clean allocated memory situation, equal to the size before the page with the video player was openen. So same enter and exit memory.
希望......