[glib: 2/3] gcontenttype: Clarify some ownership transfers
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] gcontenttype: Clarify some ownership transfers
- Date: Thu, 30 Jun 2022 15:01:42 +0000 (UTC)
commit ecec522835a90832903676bd569a4f50f71c90f3
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Jun 28 10:57:29 2022 +0100
gcontenttype: Clarify some ownership transfers
This introduces no functional changes.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
gio/gcontenttype.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c
index 6656688902..a824aa55fb 100644
--- a/gio/gcontenttype.c
+++ b/gio/gcontenttype.c
@@ -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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]