Changeset 1db9db8d0b364396bddde04728c8adb7b70c7d6b
- Timestamp:
- 04/12/05 20:35:35
(3 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1133724935 +0000
- git-parent:
[0d26b16638421761d2719a082c110cd1b8a3903b]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1133724935 +0000
- Message:
* modules/audio_output/alsa.c: fixed minor memory leak.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rbc3de76 |
r1db9db8 |
|
| 316 | 316 | p_sys->b_playing = VLC_FALSE; |
|---|
| 317 | 317 | p_sys->start_date = 0; |
|---|
| 318 | | p_sys->p_status = (snd_pcm_status_t *)malloc(snd_pcm_status_sizeof()); |
|---|
| 319 | 318 | vlc_cond_init( p_aout, &p_sys->wait ); |
|---|
| 320 | 319 | vlc_mutex_init( p_aout, &p_sys->lock ); |
|---|
| … | … | |
| 327 | 326 | return VLC_EGENERIC; |
|---|
| 328 | 327 | } |
|---|
| | 328 | |
|---|
| | 329 | p_sys->p_status = (snd_pcm_status_t *)malloc(snd_pcm_status_sizeof()); |
|---|
| 329 | 330 | |
|---|
| 330 | 331 | /* Choose the IEC device for S/PDIF output: |
|---|
| … | … | |
| 376 | 377 | if ( var_Get( p_aout, "audio-device", &val ) < 0 ) |
|---|
| 377 | 378 | { |
|---|
| | 379 | free( p_sys->p_status ); |
|---|
| 378 | 380 | free( p_sys ); |
|---|
| 379 | 381 | free( psz_device ); |
|---|
| … | … | |
| 412 | 414 | /* This should not happen ! */ |
|---|
| 413 | 415 | msg_Err( p_aout, "internal: can't find audio-device (%i)", val.i_int ); |
|---|
| | 416 | free( p_sys->p_status ); |
|---|
| 414 | 417 | free( p_sys ); |
|---|
| 415 | 418 | free( psz_device ); |
|---|
| … | … | |
| 429 | 432 | msg_Err( p_aout, "cannot open ALSA device `%s' (%s)", |
|---|
| 430 | 433 | psz_iec_device, snd_strerror( i_snd_rc ) ); |
|---|
| | 434 | free( p_sys->p_status ); |
|---|
| 431 | 435 | free( p_sys ); |
|---|
| 432 | 436 | free( psz_device ); |
|---|
| … | … | |
| 471 | 475 | msg_Err( p_aout, "cannot open ALSA device `%s' (%s)", |
|---|
| 472 | 476 | psz_device, snd_strerror( i_snd_rc ) ); |
|---|
| | 477 | free( p_sys->p_status ); |
|---|
| 473 | 478 | free( p_sys ); |
|---|
| 474 | 479 | free( psz_device ); |
|---|
| … | … | |
| 674 | 679 | snd_output_close( p_sys->p_snd_stderr ); |
|---|
| 675 | 680 | #endif |
|---|
| | 681 | free( p_sys->p_status ); |
|---|
| 676 | 682 | free( p_sys ); |
|---|
| 677 | 683 | return VLC_EGENERIC; |
|---|