mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 07:53:39 +02:00
gsettings: Clarify ownership transfer in a few places
I was trying to debug some memory leaks in the gsettings test. Eventually, it seems that actually they’re caused by the GMemorySettingsBackend being cached by GIOModule — so this commit makes no functional changes. It should make the code and documentation a bit clearer though. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -1472,6 +1472,7 @@ g_settings_schema_key_to_enum (GSettingsSchemaKey *key,
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Returns a new floating #GVariant. */
|
||||
GVariant *
|
||||
g_settings_schema_key_from_enum (GSettingsSchemaKey *key,
|
||||
gint value)
|
||||
@@ -1511,6 +1512,7 @@ g_settings_schema_key_to_flags (GSettingsSchemaKey *key,
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Returns a new floating #GVariant. */
|
||||
GVariant *
|
||||
g_settings_schema_key_from_flags (GSettingsSchemaKey *key,
|
||||
guint value)
|
||||
|
Reference in New Issue
Block a user