cleanup: Fix calls_origin_get_name() related memory leaks

Document calls_origin_get_name() correctly as transfer-full.
Additionaly fix related memory leaks.
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-05-13 17:35:10 +02:00
parent 1543802c88
commit fecdc1fff8
5 changed files with 16 additions and 9 deletions

View File

@@ -96,10 +96,10 @@ calls_origin_default_init (CallsOriginInterface *iface)
*
* Get the user-presentable name of the origin.
*
* Returns: A string containing the name. The string must be freed by
* Returns (transfer full): A string containing the name. The string must be freed by
* the caller.
*/
DEFINE_ORIGIN_GETTER(name, const gchar *, NULL);
DEFINE_ORIGIN_GETTER(name, char *, NULL);
/**
* calls_origin_get_calls: