enlightenment/src/modules/mixer/lib
Jean-Philippe Andre b173ed7be6 pulse: do not leak strbuf
See also ac92ff5256.
- eina_strbuf_string_get() returns the internally stored string as
  a const char *, and does not free the strbuf itself
- eina_strbuf_string_steal() returns the internal string as a
  char *, giving ownership to the caller, and frees the strbuf
  itself
- eina_stringshare_add() takes a const char * as input and makes a
  copy of the string

As a consequence, ss_add(sb_string_steal()) leaks the internal
string from the strbuf, while ss_add(sb_string_get()) leaks the
strbuf structure.

A one liner here would require either an eina_slstr based API or
an API in stringshare to take ownership of a given string. Both
would be useful APIs :)
2017-07-11 10:49:03 +09:00
..
backends pulse: do not leak strbuf 2017-07-11 10:49:03 +09:00
emix.c mixer: introduce emix_max_volume_get 2016-09-07 11:05:11 +02:00
emix.h mixer: use the new e_client api to export volume control by app. 2016-10-27 21:54:40 +02:00