Commit 336f3827 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

imwayland: Plug leaks

The various strings (pending/current preedit, surrounding, and commit
buffer) are being leaked in the case of GtkIMContext destruction.
parent 9c6cf4ac
......@@ -479,6 +479,10 @@ gtk_im_context_wayland_finalize (GObject *object)
g_clear_object (&context->window);
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 (parent_class)->finalize (object);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment