diff options
Diffstat (limited to 'libvo/vo_dxr3.c')
-rw-r--r-- | libvo/vo_dxr3.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c index ab2318edd2..3494e25f00 100644 --- a/libvo/vo_dxr3.c +++ b/libvo/vo_dxr3.c @@ -692,12 +692,8 @@ static void uninit(void) close(fd_control); } #ifdef SPU_SUPPORT - if(osdpicbuf) { - free(osdpicbuf); - } - if(spued) { - free(spued); - } + free(osdpicbuf); + free(spued); #endif } @@ -912,9 +908,7 @@ static overlay_t *overlay_init(int dev) static int overlay_release(overlay_t *o) { - if(o) - free(o); - + free(o); return 0; } #define TYPE_INT 1 |