summaryrefslogtreecommitdiffstats
path: root/libvo/vo_yuv4mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_yuv4mpeg.c')
-rw-r--r--libvo/vo_yuv4mpeg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libvo/vo_yuv4mpeg.c b/libvo/vo_yuv4mpeg.c
index 8b9900d270..5901cce2c2 100644
--- a/libvo/vo_yuv4mpeg.c
+++ b/libvo/vo_yuv4mpeg.c
@@ -234,16 +234,14 @@ static int query_format(uint32_t format)
// WARNING: config(...) also uses this
static void uninit(void)
{
- if(image)
- free(image);
+ free(image);
image = NULL;
if(yuv_out)
fclose(yuv_out);
yuv_out = NULL;
- if (yuv_filename)
- free(yuv_filename);
+ free(yuv_filename);
yuv_filename = NULL;
image_width = 0;
image_height = 0;