[MPlayer-cvslog] r29616 - trunk/libvo/vo_corevideo.m
reimar
subversion at mplayerhq.hu
Tue Sep 1 23:12:33 CEST 2009
Author: reimar
Date: Tue Sep 1 23:12:33 2009
New Revision: 29616
Log:
Add a dealloc function to corevideo to reduce the memleaks from
(for my sample) about 12 MB to 2 MB.
Modified:
trunk/libvo/vo_corevideo.m
Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m Tue Sep 1 22:09:01 2009 (r29615)
+++ trunk/libvo/vo_corevideo.m Tue Sep 1 23:12:33 2009 (r29616)
@@ -480,6 +480,17 @@ static int control(uint32_t request, voi
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;
More information about the MPlayer-cvslog
mailing list