diff options
author | pastel raschke <stel@comfy.monster> | 2023-12-18 11:11:45 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-12-18 11:14:41 +0100 |
commit | 6ee5bd9eeeb94266664b894a835987de67c0530a (patch) | |
tree | 51f717f4224a2e5ac4a818b7cf5f99f047f5c7a9 | |
parent | 81f5607ad9afb7c9a8c52a8258145da8c82e8a16 (diff) |
input-method-v2: free current strings on commit
-rw-r--r-- | types/wlr_input_method_v2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/types/wlr_input_method_v2.c b/types/wlr_input_method_v2.c index 18e2a58e..227f5fb4 100644 --- a/types/wlr_input_method_v2.c +++ b/types/wlr_input_method_v2.c @@ -80,6 +80,8 @@ static void im_commit(struct wl_client *client, struct wl_resource *resource, if (!input_method) { return; } + free(input_method->current.commit_text); + free(input_method->current.preedit.text); input_method->current = input_method->pending; input_method->current_serial = serial; input_method->pending = (struct wlr_input_method_v2_state){0}; |