diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c index 0b68abd6b6..4cff9f86bd 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