summaryrefslogtreecommitdiff
path: root/charpick
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-20 22:52:38 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-07-28 09:59:06 +0200
commit3ac3173fc8451e578e3e5a4c9371a32a6617cda9 (patch)
treec884771ba83b0cb6f4a1943fb614916f29677c07 /charpick
parentdbd9c81420c65b6abcae3d96c85a771bdf69b118 (diff)
downloadmate-applets-3ac3173fc8451e578e3e5a4c9371a32a6617cda9.tar.bz2
mate-applets-3ac3173fc8451e578e3e5a4c9371a32a6617cda9.tar.xz
charpick: Fix memory leak reported by clang static analyzer
Diffstat (limited to 'charpick')
-rw-r--r--charpick/charpick.c5
1 files 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);