From 3ac3173fc8451e578e3e5a4c9371a32a6617cda9 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 20 Jul 2020 22:52:38 +0200 Subject: charpick: Fix memory leak reported by clang static analyzer --- charpick/charpick.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/charpick/charpick.c b/charpick/charpick.c index ad6b562a..5cec3217 100644 --- a/charpick/charpick.c +++ b/charpick/charpick.c @@ -514,9 +514,10 @@ build_table(charpick_data *p_curr_data) index = CLAMP (index, 0, size_ratio-1); gtk_box_pack_start (GTK_BOX (row_box[index]), toggle_button[i], TRUE, TRUE, 0); } - + g_free (toggle_button); - + g_free (row_box); + gtk_container_add (GTK_CONTAINER(p_curr_data->applet), box); gtk_widget_show_all (p_curr_data->box); -- cgit v1.2.1