Leak in gtk_im_context_wayland_get_preedit_string
If the parent class get_preedit_string
returns a zero-length string, gtk_im_context_wayland_get_preedit_string
will leak it.
Direct leak of 1 byte(s) in 1 object(s) allocated from:
#0 0x7f44e1e84c48 in malloc (/lib64/libasan.so.5+0xeec48)
#1 0x7f44e0331976 in g_malloc ../../../../Projects/glib/glib/gmem.c:99
#2 0x7f44e0331c39 in g_malloc_n ../../../../Projects/glib/glib/gmem.c:336
#3 0x7f44e034ea7a in g_strdup ../../../../Projects/glib/glib/gstrfuncs.c:363
#4 0x7f44e0f2cceb in gtk_im_context_simple_get_preedit_string /home/mcatanzaro/Projects/gtk/gtk/gtkimcontextsimple.c:1376
#5 0x7f445aa28c69 in gtk_im_context_wayland_get_preedit_string /home/mcatanzaro/Projects/gtk/modules/input/imwayland.c:491
#6 0x7f44e0f2a0a1 in gtk_im_context_get_preedit_string /home/mcatanzaro/Projects/gtk/gtk/gtkimcontext.c:490
#7 0x7f44e0f2ed5b in gtk_im_multicontext_get_preedit_string /home/mcatanzaro/Projects/gtk/gtk/gtkimmulticontext.c:340
#8 0x7f44e0f2a0a1 in gtk_im_context_get_preedit_string /home/mcatanzaro/Projects/gtk/gtk/gtkimcontext.c:490
#9 0x7f44e0e90bca in gtk_entry_create_layout /home/mcatanzaro/Projects/gtk/gtk/gtkentry.c:6357
#10 0x7f44e0e90eee in gtk_entry_ensure_layout /home/mcatanzaro/Projects/gtk/gtk/gtkentry.c:6449
#11 0x7f44e0e91c7d in gtk_entry_get_cursor_locations /home/mcatanzaro/Projects/gtk/gtk/gtkentry.c:6880
#12 0x7f44e0e906a8 in update_im_cursor_location /home/mcatanzaro/Projects/gtk/gtk/gtkentry.c:6246
#13 0x7f44e0e90779 in gtk_entry_recompute /home/mcatanzaro/Projects/gtk/gtk/gtkentry.c:6277
#14 0x7f44e0e8e1f4 in gtk_entry_screen_changed /home/mcatanzaro/Projects/gtk/gtk/gtkentry.c:5148
#15 0x7f44e061af5f in g_cclosure_marshal_VOID__OBJECTv ../../../../Projects/glib/gobject/gmarshal.c:2102
#16 0x7f44e06165d7 in g_type_class_meta_marshalv ../../../../Projects/glib/gobject/gclosure.c:1030
#17 0x7f44e0616199 in _g_closure_invoke_va ../../../../Projects/glib/gobject/gclosure.c:873
#18 0x7f44e06320b1 in g_signal_emit_valist ../../../../Projects/glib/gobject/gsignal.c:3300
#19 0x7f44e06332ef in g_signal_emit ../../../../Projects/glib/gobject/gsignal.c:3447
#20 0x7f44e1135c41 in do_screen_change /home/mcatanzaro/Projects/gtk/gtk/gtkwidget.c:9901
#21 0x7f44e1135d97 in gtk_widget_propagate_hierarchy_changed_recurse /home/mcatanzaro/Projects/gtk/gtk/gtkwidget.c:9932
#22 0x7f44e0fa2dab in gtk_overlay_forall /home/mcatanzaro/Projects/gtk/gtk/gtkoverlay.c:633
#23 0x7f44e0e32bc5 in gtk_container_forall /home/mcatanzaro/Projects/gtk/gtk/gtkcontainer.c:2443
#24 0x7f44e1135e2a in gtk_widget_propagate_hierarchy_changed_recurse /home/mcatanzaro/Projects/gtk/gtk/gtkwidget.c:9935
#25 0x7f44e0f04454 in gtk_header_bar_forall /home/mcatanzaro/Projects/gtk/gtk/gtkheaderbar.c:1749
#26 0x7f44e0e32bc5 in gtk_container_forall /home/mcatanzaro/Projects/gtk/gtk/gtkcontainer.c:2443
#27 0x7f44e1135e2a in gtk_widget_propagate_hierarchy_changed_recurse /home/mcatanzaro/Projects/gtk/gtk/gtkwidget.c:9935
#28 0x7f44e1135f0a in _gtk_widget_propagate_hierarchy_changed /home/mcatanzaro/Projects/gtk/gtk/gtkwidget.c:9973
#29 0x7f44e112b73d in gtk_widget_unparent /home/mcatanzaro/Projects/gtk/gtk/gtkwidget.c:4665