mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
gcontenttype: Clarify some ownership transfers
This introduces no functional changes. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
45d4c52501
commit
ecec522835
@ -505,7 +505,7 @@ g_content_type_get_description (const gchar *type)
|
||||
if (comment != NULL)
|
||||
{
|
||||
G_UNLOCK (gio_xdgmime);
|
||||
return comment;
|
||||
return g_steal_pointer (&comment);
|
||||
}
|
||||
|
||||
type_copy = g_strdup (type);
|
||||
@ -519,7 +519,7 @@ g_content_type_get_description (const gchar *type)
|
||||
g_strdup (comment));
|
||||
G_UNLOCK (gio_xdgmime);
|
||||
|
||||
return comment;
|
||||
return g_steal_pointer (&comment);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user