Skip to content
Snippets Groups Projects
Commit 7e2bc1e0 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

pulseaudio: fix memory leak

This leak is due to memory allocated by pa_context_subscribe()
and not free as expected.
This function returns a pointer on a pa_operation structure.
This patch calls pa_operation_unref() on it when pa context is
terminated and when PulseAudio class is deleted.
This patch also improve the mainloop destroying (to prevent memory leak)
by using aa true RAII concept with a std::unique_ptr.

Change-Id: I8a27fd1672b7952f0fe1c944712ab6955cedfa97
Tuleap: #412
parent 207f0d15
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment