From 911b118a7ddf831800e72f8b4f64b2766e99c6fc Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 8 Nov 2021 14:32:54 +0100 Subject: matekbd-keyboard-drawing: fix memory leak --- libmatekbd/matekbd-keyboard-drawing.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.1