[gtk+/gtk-3-22] gtk/gtkemojichooser.c: Don't use g_autoptr()



commit 7b240ae298ae80b83b948412b00350cdccd24c34
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 0b68abd..4cff9f8 100644
--- a/gtk/gtkemojichooser.c
+++ b/gtk/gtkemojichooser.c
@@ -365,7 +365,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;
@@ -400,6 +400,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]