Commit 4d321bff authored by Limin Wang's avatar Limin Wang Committed by Benoit Fouet

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
parent 1c48415b
......@@ -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