mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-10 04:30:11 +00:00
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:
parent
9c6cf4acab
commit
336f382728
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user