From 6ed4fc61cc782528b89fe5703450ba33c65188c5 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 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 -- cgit v1.2.1