bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=ac92ff52567293399060bfd35b22ae86fe80a511

commit ac92ff52567293399060bfd35b22ae86fe80a511
Author: Marcel Hollerbach <marcel-hollerb...@t-online.de>
Date:   Mon Jul 10 14:44:00 2017 +0200

    mixer: do not leak a allocated string
    
    this fixes a leak, thank you jp!
    
    @fix
---
 src/modules/mixer/lib/backends/pulseaudio/pulse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/mixer/lib/backends/pulseaudio/pulse.c 
b/src/modules/mixer/lib/backends/pulseaudio/pulse.c
index 0a1084500..56446fcf4 100644
--- a/src/modules/mixer/lib/backends/pulseaudio/pulse.c
+++ b/src/modules/mixer/lib/backends/pulseaudio/pulse.c
@@ -337,7 +337,7 @@ _sink_input_cb(pa_context *c EINA_UNUSED, const 
pa_sink_input_info *info,
    eina_strbuf_append(input_name, pa_proplist_gets(info->proplist, 
PA_PROP_APPLICATION_NAME));
    eina_strbuf_append(input_name, ":");
    eina_strbuf_append(input_name, info->name);
-   input->base.name = 
eina_stringshare_add(eina_strbuf_string_steal(input_name));
+   input->base.name = eina_stringshare_add(eina_strbuf_string_get(input_name));
    input->base.volume = _pa_cvolume_convert(&info->volume);
    input->base.mute = !!info->mute;
    EINA_LIST_FOREACH(ctx->sinks, l, s)

-- 


Reply via email to