Mercurial > mplayer.hg
comparison libao2/ao_sun.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 | ad5550203548 |
children | d2a42640b9d7 |
comparison
equal
deleted
inserted
replaced
32536:187f26cba0ce | 32537:8fa2f43cb760 |
---|---|
226 "\t%susing sample counter based timing code\n", | 226 "\t%susing sample counter based timing code\n", |
227 min_increment, rtsc_ok == RTSC_ENABLED ? "" : "not "); | 227 min_increment, rtsc_ok == RTSC_ENABLED ? "" : "not "); |
228 | 228 |
229 | 229 |
230 error: | 230 error: |
231 if (silence != NULL) free(silence); | 231 free(silence); |
232 if (fd >= 0) { | 232 if (fd >= 0) { |
233 // remove the 0 bytes from the above measurement from the | 233 // remove the 0 bytes from the above measurement from the |
234 // audio driver's STREAMS queue | 234 // audio driver's STREAMS queue |
235 flush_audio(fd); | 235 flush_audio(fd); |
236 close(fd); | 236 close(fd); |