changeset 34875:444a6a469743

Remove unnecessary if, free can be called unconditionally.
author reimar
date Wed, 23 May 2012 19:17:30 +0000
parents 9fbab723e75a
children c5f89bf5b952
files libvo/vo_corevideo.m
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_corevideo.m	Tue May 22 21:14:55 2012 +0000
+++ b/libvo/vo_corevideo.m	Wed May 23 19:17:30 2012 +0000
@@ -153,8 +153,7 @@
 			mp_msg(MSGT_VO, MSGL_FATAL, "[vo_corevideo] uninit: shm_unlink failed. Error: %s\n", strerror(errno));
     } else {
         free(image_datas[0]);
-        if (vo_doublebuffering)
-            free(image_datas[1]);
+        free(image_datas[1]);
         image_datas[0] = NULL;
         image_datas[1] = NULL;
         image_data = NULL;