This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.
The master branch has been updated
from 2a32de1eaa15624b3d773115d849dba863ca5a44 (commit)
- Log -----------------------------------------------------------------
ef5af55 fix an error where a signal was accidently freed when it is tried to
register it twice
-----------------------------------------------------------------------
Summary of changes:
src/pulse/mainloop-signal.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
commit ef5af553d6bb27d88a97f407fcf9f685f7e36e49
Author: Lennart Poettering <[email protected]>
Date: Tue Mar 31 20:31:15 2009 +0200
fix an error where a signal was accidently freed when it is tried to
register it twice
diff --git a/src/pulse/mainloop-signal.c b/src/pulse/mainloop-signal.c
index 52f11c8..3dc7439 100644
--- a/src/pulse/mainloop-signal.c
+++ b/src/pulse/mainloop-signal.c
@@ -170,7 +170,7 @@ pa_signal_event* pa_signal_new(int sig, pa_signal_cb_t
_callback, void *userdata
for (e = signals; e; e = e->next)
if (e->sig == sig)
- goto fail;
+ return NULL;
e = pa_xnew(pa_signal_event, 1);
e->sig = sig;
@@ -196,8 +196,7 @@ pa_signal_event* pa_signal_new(int sig, pa_signal_cb_t
_callback, void *userdata
return e;
fail:
- if (e)
- pa_xfree(e);
+ pa_xfree(e);
return NULL;
}
--
hooks/post-receive
PulseAudio Sound Server
_______________________________________________
pulseaudio-commits mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-commits