comparison vidix/ivtv_vid.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 912e642ffb95
children 945eab072c9d
comparison
equal deleted inserted replaced
32536:187f26cba0ce 32537:8fa2f43cb760
380 printf(IVTV_MSG"destroy\n"); 380 printf(IVTV_MSG"destroy\n");
381 if(-1 != yuvdev) 381 if(-1 != yuvdev)
382 close(yuvdev); 382 close(yuvdev);
383 if(-1 != fbdev) 383 if(-1 != fbdev)
384 close(fbdev); 384 close(fbdev);
385 if(NULL != outbuf) 385 free(outbuf);
386 free(outbuf); 386 free(memBase);
387 if(NULL != memBase)
388 free(memBase);
389 } 387 }
390 388
391 int ivtv_get_caps(vidix_capability_t *to) 389 int ivtv_get_caps(vidix_capability_t *to)
392 { 390 {
393 if(ivtv_verbose) 391 if(ivtv_verbose)