[FFmpeg-cvslog] r30863 - trunk/libswscale/utils.c
reimar
subversion
Mon Mar 8 20:37:11 CET 2010
Author: reimar
Date: Mon Mar 8 20:37:10 2010
New Revision: 30863
Log:
Fix memleak due to incorrect VirtualFree arguments: size must be 0 for MEM_RELEASE.
Modified:
trunk/libswscale/utils.c
Modified: trunk/libswscale/utils.c
==============================================================================
--- trunk/libswscale/utils.c Mon Mar 8 20:33:41 2010 (r30862)
+++ trunk/libswscale/utils.c Mon Mar 8 20:37:10 2010 (r30863)
@@ -1538,8 +1538,8 @@ void sws_freeContext(SwsContext *c)
if (c->lumMmx2FilterCode) munmap(c->lumMmx2FilterCode, c->lumMmx2FilterCodeSize);
if (c->chrMmx2FilterCode) munmap(c->chrMmx2FilterCode, c->chrMmx2FilterCodeSize);
#elif HAVE_VIRTUALALLOC
- if (c->lumMmx2FilterCode) VirtualFree(c->lumMmx2FilterCode, c->lumMmx2FilterCodeSize, MEM_RELEASE);
- if (c->chrMmx2FilterCode) VirtualFree(c->chrMmx2FilterCode, c->chrMmx2FilterCodeSize, MEM_RELEASE);
+ if (c->lumMmx2FilterCode) VirtualFree(c->lumMmx2FilterCode, 0, MEM_RELEASE);
+ if (c->chrMmx2FilterCode) VirtualFree(c->chrMmx2FilterCode, 0, MEM_RELEASE);
#else
av_free(c->lumMmx2FilterCode);
av_free(c->chrMmx2FilterCode);
More information about the ffmpeg-cvslog
mailing list