[vlc-commits] commit: pulse: no need to check null in free (Ilkka Ollakka )
git at videolan.org
git at videolan.org
Tue Jun 8 07:39:46 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Jun 8 08:37:50 2010 +0300| [5e969105d58499aed4dbf59c0bb45ded5cdbb072] | committer: Ilkka Ollakka
pulse: no need to check null in free
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e969105d58499aed4dbf59c0bb45ded5cdbb072
---
modules/audio_output/pulse.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 0a6b2e0..c02ffa0 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -307,8 +307,7 @@ unlock_and_fail:
if (p_sys->mainloop)
pa_threaded_mainloop_unlock(p_sys->mainloop);
fail:
- if (p_client_name)
- free(p_client_name);
+ free(p_client_name);
msg_Dbg(p_aout, "Pulse initialization failed");
uninit(p_aout);
return VLC_EGENERIC;
More information about the vlc-commits
mailing list