summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-11-08 14:32:54 +0100
committerraveit65 <[email protected]>2023-05-11 15:19:49 +0200
commit911b118a7ddf831800e72f8b4f64b2766e99c6fc (patch)
treec8c49158c87b4a337b89ba81c7188a61b1e6b494
parentff9924aacd16a70816ec8acdff9b0a87a5cfd343 (diff)
downloadlibmatekbd-911b118a7ddf831800e72f8b4f64b2766e99c6fc.tar.bz2
libmatekbd-911b118a7ddf831800e72f8b4f64b2766e99c6fc.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 e2e4842..a9aec4d 100644
--- a/libmatekbd/matekbd-keyboard-drawing.c
+++ b/libmatekbd/matekbd-keyboard-drawing.c
@@ -2096,6 +2096,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);
}
@@ -2238,6 +2239,8 @@ destroy (MatekbdKeyboardDrawing * drawing)
if (drawing->surface != NULL) {
cairo_surface_destroy (drawing->surface);
}
+
+ free_cdik (drawing);
}
static void