Add a dealloc function to corevideo to reduce the memleaks from

(for my sample) about 12 MB to 2 MB.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29616 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-09-01 21:12:33 +00:00
parent cb9e32c88c
commit 9ad17fad92
1 changed files with 11 additions and 0 deletions

View File

@ -480,6 +480,17 @@ static int control(uint32_t request, void *data, ...)
texture = NULL;
}
- (void) dealloc
{
[self releaseVideoSpecific];
CVOpenGLTextureCacheRelease(textureCache);
textureCache = NULL;
[self setOpenGLContext:nil];
[glContext release];
glContext = NULL;
[super dealloc];
}
- (void) config
{
uint32_t d_width;