Commit 28a09d30 authored by benoit's avatar benoit

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9361 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2b322203
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment