summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-11-08 14:32:54 +0100
committermouse <[email protected]>2023-04-20 09:08:26 +0800
commit6ed4fc61cc782528b89fe5703450ba33c65188c5 (patch)
treeadc7f53c17e7b3653904e497fa69d6bd5f256d0b
parent9e881bb329cd7561c8c35987952aaa80e0d5c6b8 (diff)
downloadlibmatekbd-6ed4fc61cc782528b89fe5703450ba33c65188c5.tar.bz2
libmatekbd-6ed4fc61cc782528b89fe5703450ba33c65188c5.tar.xz
matekbd-keyboard-drawing: fix memory leak
-rw-r--r--libmatekbd/matekbd-keyboard-drawing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmatekbd/matekbd-keyboard-drawing.c b/libmatekbd/matekbd-keyboard-drawing.c
index 8b99f85..beb2bf8 100644
--- a/libmatekbd/matekbd-keyboard-drawing.c
+++ b/libmatekbd/matekbd-keyboard-drawing.c
@@ -2089,6 +2089,7 @@ free_cdik ( /*colors doodads indicators keys */
g_list_free (drawing->keyboard_items);
drawing->keyboard_items = NULL;
+ g_free (drawing->physical_indicators);
g_free (drawing->keys);
g_free (drawing->colors);
}
@@ -2231,6 +2232,8 @@ destroy (MatekbdKeyboardDrawing * drawing)
if (drawing->surface != NULL) {
cairo_surface_destroy (drawing->surface);
}
+
+ free_cdik (drawing);
}
static void