summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-09-02 23:43:41 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-09-02 23:45:45 -0300
commit6ddd8f82e4707ee72c5e16b4cbced05f88651321 (patch)
tree34b4dfab5e2c44cd61a53c7790ed8b305839eedc
parent980644581f4c2603062f6a134886440bb8e5122b (diff)
pulse: Fix memory leak
The volumes in sink input and sources were leaking.
-rw-r--r--src/lib/backends/pulseaudio/pulse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/backends/pulseaudio/pulse.c b/src/lib/backends/pulseaudio/pulse.c
index d38bd9f..9ec269e 100644
--- a/src/lib/backends/pulseaudio/pulse.c
+++ b/src/lib/backends/pulseaudio/pulse.c
@@ -106,6 +106,7 @@ _sink_input_del(Sink_Input *input)
106{ 106{
107 EINA_SAFETY_ON_NULL_RETURN(input); 107 EINA_SAFETY_ON_NULL_RETURN(input);
108 108
109 free(input->base.volume.volumes);
109 eina_stringshare_del(input->base.name); 110 eina_stringshare_del(input->base.name);
110 eina_stringshare_del(input->icon); 111 eina_stringshare_del(input->icon);
111 free(input); 112 free(input);
@@ -116,6 +117,7 @@ _source_del(Source *source)
116{ 117{
117 EINA_SAFETY_ON_NULL_RETURN(source); 118 EINA_SAFETY_ON_NULL_RETURN(source);
118 119
120 free(source->base.volume.volumes);
119 eina_stringshare_del(source->base.name); 121 eina_stringshare_del(source->base.name);
120 free(source); 122 free(source);
121} 123}