mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 17:42:17 +00:00
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:
parent
cb9e32c88c
commit
9ad17fad92
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user