1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-13 16:07:36 +00:00

settings: Fix memory leak

g_settings_get_string() and g_settings_get_strv() are transfer full,
so we should use g_value_take_string() instead of g_value_set_string() and
g_value_take_boxed() instead of g_value_set_boxed()
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-01-27 17:21:31 +01:00
parent 7587efb78a
commit ab3ff5772b

View file

@ -101,15 +101,15 @@ calls_settings_get_property (GObject *object,
break;
case PROP_COUNTRY_CODE:
g_value_set_string (value, calls_settings_get_country_code (self));
g_value_take_string (value, calls_settings_get_country_code (self));
break;
case PROP_AUTOLOAD_PLUGINS:
g_value_set_boxed (value, calls_settings_get_autoload_plugins (self));
g_value_take_boxed (value, calls_settings_get_autoload_plugins (self));
break;
case PROP_PREFERRED_AUDIO_CODECS:
g_value_set_boxed (value, calls_settings_get_preferred_audio_codecs (self));
g_value_take_boxed (value, calls_settings_get_preferred_audio_codecs (self));
break;
default: