summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2018-10-30 21:57:09 +0100
committerCarlos Garnacho <carlosg@gnome.org>2018-12-18 20:38:44 +0100
commit904202a636e744bbecf78a3e4926dd8501109c7b (patch)
treedccfaba41fe2d245bb76c940317f6a35f9bf0c38
parent7a0b6a36393400160ec4e11c206d113595374f9c (diff)
downloadgtk+-904202a636e744bbecf78a3e4926dd8501109c7b.tar.gz
imwayland: Plug leaks
The various strings (pending/current preedit, surrounding, and commit buffer) are being leaked in the case of GtkIMContext destruction.
-rw-r--r--gtk/gtkimcontextwayland.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkimcontextwayland.c b/gtk/gtkimcontextwayland.c
index 98fb2d3352..1b798ec40c 100644
--- a/gtk/gtkimcontextwayland.c
+++ b/gtk/gtkimcontextwayland.c
@@ -388,6 +388,10 @@ gtk_im_context_wayland_finalize (GObject *object)
g_clear_object (&context->widget);
g_clear_object (&context->gesture);
+ g_free (context->surrounding.text);
+ g_free (context->current_preedit.text);
+ g_free (context->pending_preedit.text);
+ g_free (context->pending_commit);
G_OBJECT_CLASS (gtk_im_context_wayland_parent_class)->finalize (object);
}