comparison libvo/vo_dxr2.c @ 32537:8fa2f43cb760

Remove most of the NULL pointer check before free all over the code
author cboesch
date Sun, 14 Nov 2010 09:12:34 +0000
parents fbe5c829c69b
children 4040f4df69f0
comparison
equal deleted inserted replaced
32536:187f26cba0ce 32537:8fa2f43cb760
787 playing = 0; 787 playing = 0;
788 } 788 }
789 close(dxr2_fd); 789 close(dxr2_fd);
790 dxr2_fd = -1; 790 dxr2_fd = -1;
791 } 791 }
792 if(sub_img) { 792 free(sub_img);
793 free(sub_img); 793 sub_img = NULL;
794 sub_img = NULL;
795 }
796 if(sub_vo) { 794 if(sub_vo) {
797 int cc = vo_config_count; 795 int cc = vo_config_count;
798 vo_config_count = sub_config_count; 796 vo_config_count = sub_config_count;
799 sub_vo->uninit(); 797 sub_vo->uninit();
800 sub_vo = NULL; 798 sub_vo = NULL;