Commit fff9dd75 authored by michael's avatar michael

av_free* cleanup


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6019 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 776fa228
...@@ -102,8 +102,7 @@ void Release(void *ctx) ...@@ -102,8 +102,7 @@ void Release(void *ctx)
if (ci) get_watermark_picture(ci, 1); if (ci) get_watermark_picture(ci, 1);
if (ctx) av_free(ctx);
av_free(ctx);
} }
...@@ -556,14 +555,8 @@ int get_watermark_picture(ContextInfo *ci, int cleanup) ...@@ -556,14 +555,8 @@ int get_watermark_picture(ContextInfo *ci, int cleanup)
if (0 != cleanup) if (0 != cleanup)
{ {
// Free the RGB image // Free the RGB image
if (0 != ci->buffer) { av_freep(&ci->buffer);
av_free(ci->buffer); av_freep(&ci->pFrameRGB);
ci->buffer = 0;
}
if (0 != ci->pFrameRGB) {
av_free(ci->pFrameRGB);
ci->pFrameRGB = 0;
}
// Close the codec // Close the codec
if (0 != ci->pCodecCtx) { if (0 != ci->pCodecCtx) {
......
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