imwayland: Plug leaks

The various strings (pending/current preedit, surrounding, and commit
buffer) are being leaked in the case of GtkIMContext destruction.
This commit is contained in:
Carlos Garnacho 2018-10-30 21:57:09 +01:00
parent 9c6cf4acab
commit 336f382728

View File

@ -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);
}