diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2007-06-18 12:00:06 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-06-18 12:00:06 +0000 |
commit | 4d321bff85cf1e9b6a18b915af185494b5ea94b6 (patch) | |
tree | 675776576dc6179b363d49cf00a8f2904ecf72e6 /vhook | |
parent | 1c48415bb9f628d4f8e67e007309fb6ffe3735e6 (diff) | |
download | ffmpeg-4d321bff85cf1e9b6a18b915af185494b5ea94b6.tar.gz |
fix imlib2 memory leaks
patch by Limin Wang: [lance lmwang gmail com]
original thread: [FFmpeg-devel] [PATCH] fix imlib2 memory leaks
date: 06/18/2007 04:22 AM
Originally committed as revision 9361 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook')
-rw-r--r-- | vhook/imlib2.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/vhook/imlib2.c b/vhook/imlib2.c index f03293a8a4..595db45745 100644 --- a/vhook/imlib2.c +++ b/vhook/imlib2.c @@ -174,11 +174,17 @@ void Release(void *ctx) imlib_context_set_image(ci->imageOverlaid); imlib_free_image(); } - ff_eval_free(ci->expr_x); - ff_eval_free(ci->expr_y); - ff_eval_free(ci->expr_R); - ff_eval_free(ci->expr_G); - ff_eval_free(ci->expr_B); + ff_eval_free(ci->eval_x); + ff_eval_free(ci->eval_y); + ff_eval_free(ci->eval_r); + ff_eval_free(ci->eval_g); + ff_eval_free(ci->eval_b); + + av_free(ci->expr_x); + av_free(ci->expr_y); + av_free(ci->expr_R); + av_free(ci->expr_G); + av_free(ci->expr_B); sws_freeContext(ci->toRGB_convert_ctx); sws_freeContext(ci->fromRGB_convert_ctx); av_free(ctx); |