Mercurial > mplayer.hg
comparison stream/asf_streaming.c @ 32511:b39155e98ac3
Remove some useless NULL pointer checks before invoking free() on the pointer.
patch by From: Clment Bsch, ubitux gmail com
author | diego |
---|---|
date | Sun, 07 Nov 2010 12:47:40 +0000 |
parents | abf1b2360d4f |
children | 54a706166f5d |
comparison
equal
deleted
inserted
replaced
32510:b756312f1d15 | 32511:b39155e98ac3 |
---|---|
398 | 398 |
399 return 1; | 399 return 1; |
400 | 400 |
401 len_err_out: | 401 len_err_out: |
402 mp_msg(MSGT_NETWORK, MSGL_FATAL, MSGTR_MPDEMUX_ASF_InvalidLenInHeader); | 402 mp_msg(MSGT_NETWORK, MSGL_FATAL, MSGTR_MPDEMUX_ASF_InvalidLenInHeader); |
403 if (buffer) free(buffer); | 403 free(buffer); |
404 if (v_rates) free(v_rates); | 404 free(v_rates); |
405 if (a_rates) free(a_rates); | 405 free(a_rates); |
406 return -1; | 406 return -1; |
407 } | 407 } |
408 | 408 |
409 static int asf_http_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *streaming_ctrl ) { | 409 static int asf_http_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *streaming_ctrl ) { |
410 static ASF_stream_chunck_t chunk; | 410 static ASF_stream_chunck_t chunk; |