diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-03-08 19:37:10 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-03-08 19:37:10 +0000 |
commit | 12423f170f4371c0c02f20676564ae73e856dd36 (patch) | |
tree | 7c823667313a864bf08243a6cc8403bed71c0a52 /libswscale | |
parent | 0926c00980b2311539711853a14665b3e80b7902 (diff) | |
download | ffmpeg-12423f170f4371c0c02f20676564ae73e856dd36.tar.gz |
Fix memleak due to incorrect VirtualFree arguments: size must be 0 for MEM_RELEASE.
Originally committed as revision 30863 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 1674d764e5..2b9f272825 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -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); |