gcontenttype: Clarify some ownership transfers

This introduces no functional changes.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-06-28 10:57:29 +01:00
parent 45d4c52501
commit ecec522835

View File

@ -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);
}
/**