[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] thread-mainloop: Release once_unlocked_data object after callback

PulseAudio Marge Bot (@pulseaudio-merge-bot) gitlab at gitlab.freedesktop.org
Wed Oct 6 14:21:56 UTC 2021



PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio


Commits:
b81b9958 by Igor V. Kovalenko at 2021-10-06T14:18:24+00:00
thread-mainloop: Release once_unlocked_data object after callback

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/642>

- - - - -


1 changed file:

- src/pulse/thread-mainloop.c


Changes:

=====================================
src/pulse/thread-mainloop.c
=====================================
@@ -278,6 +278,8 @@ static void once_unlocked_cb(pa_mainloop_api *api, void *userdata) {
 
     pa_mutex_lock(data->mainloop->mutex);
     pa_atomic_store(&data->mainloop->in_once_unlocked, 0);
+
+    pa_xfree(data);
 }
 
 void pa_threaded_mainloop_once_unlocked(pa_threaded_mainloop *m, void (*callback)(pa_threaded_mainloop *m, void *userdata),



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/b81b995809160e1df7b1997313446fec95194954

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/b81b995809160e1df7b1997313446fec95194954
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20211006/bbe2033b/attachment.htm>


More information about the pulseaudio-commits mailing list