diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2018-05-15 13:28:08 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2018-05-15 13:49:45 +0800 |
commit | 9332237bd4b59fa7ed0d0d4d5c79bce9fce31feb (patch) | |
tree | e89627776b7a18d4bc0abf2aa2c2f636c95da5ca /gtk/gtkemojicompletion.c | |
parent | 04b4c077f641c59f030eef9c6b0a4d27ebbe27a0 (diff) | |
download | gtk+-9332237bd4b59fa7ed0d0d4d5c79bce9fce31feb.tar.gz |
gtkemojicompletion.c: Don't use g_autoptr()
This code is also built with non-GCC/non-CLang compilers, so don't use a
GCCism here.
Diffstat (limited to 'gtk/gtkemojicompletion.c')
-rw-r--r-- | gtk/gtkemojicompletion.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkemojicompletion.c b/gtk/gtkemojicompletion.c index c8a1be12c4..41ccbb06be 100644 --- a/gtk/gtkemojicompletion.c +++ b/gtk/gtkemojicompletion.c @@ -620,7 +620,7 @@ long_pressed_cb (GtkGesture *gesture, static void gtk_emoji_completion_init (GtkEmojiCompletion *completion) { - g_autoptr(GBytes) bytes = NULL; + GBytes *bytes = NULL; GtkGesture *long_press; gtk_widget_init_template (GTK_WIDGET (completion)); @@ -628,6 +628,8 @@ gtk_emoji_completion_init (GtkEmojiCompletion *completion) bytes = g_resources_lookup_data ("/org/gtk/libgtk/emoji/emoji.data", 0, NULL); completion->data = g_variant_ref_sink (g_variant_new_from_bytes (G_VARIANT_TYPE ("a(auss)"), bytes, TRUE)); + g_bytes_unref (bytes); + long_press = gtk_gesture_long_press_new (); g_signal_connect (long_press, "pressed", G_CALLBACK (long_pressed_cb), completion); gtk_widget_add_controller (completion->list, GTK_EVENT_CONTROLLER (long_press)); |