[gtk+] gtk/gtkemojichooser.c: Don't use g_autoptr()
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkemojichooser.c: Don't use g_autoptr()
- Date: Tue, 15 Aug 2017 15:38:01 +0000 (UTC)
commit f7409773b3cc213a750010c8654a9d67ddceb596
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Aug 15 10:43:01 2017 +0800
gtk/gtkemojichooser.c: Don't use g_autoptr()
We can't use g_autoptr() on non-GCC-style compilers.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
gtk/gtkemojichooser.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c
index 3d47c8e..f160496 100644
--- a/gtk/gtkemojichooser.c
+++ b/gtk/gtkemojichooser.c
@@ -327,7 +327,7 @@ add_emoji (GtkWidget *box,
static void
populate_emoji_chooser (GtkEmojiChooser *chooser)
{
- g_autoptr(GBytes) bytes = NULL;
+ GBytes *bytes = NULL;
GVariantIter iter;
GVariant *item;
GtkWidget *box;
@@ -362,6 +362,8 @@ populate_emoji_chooser (GtkEmojiChooser *chooser)
add_emoji (box, FALSE, item, 0);
}
+
+ g_bytes_unref (bytes);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]