From 0a36a4545f7dcd021a478a53fb80dc6594ceda1e Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 6 Nov 2017 20:38:43 +0100 Subject: [PATCH] core: Plug leaks The MetaWorkspaceLogicalMonitorData structs are leaked, and so is the stamps hashtable in MetaDisplay. https://bugzilla.gnome.org/show_bug.cgi?id=789984 --- src/core/display.c | 1 + src/core/workspace.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/display.c b/src/core/display.c index dc4d8dfe5..7faa61a95 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -1138,6 +1138,7 @@ meta_display_close (MetaDisplay *display, */ g_hash_table_destroy (display->xids); g_hash_table_destroy (display->wayland_windows); + g_hash_table_destroy (display->stamps); if (display->leader_window != None) XDestroyWindow (display->xdisplay, display->leader_window); diff --git a/src/core/workspace.c b/src/core/workspace.c index 901de4541..7866c15d3 100644 --- a/src/core/workspace.c +++ b/src/core/workspace.c @@ -99,6 +99,7 @@ workspace_logical_monitor_data_free (MetaWorkspaceLogicalMonitorData *data) { g_clear_pointer (&data->logical_monitor_region, meta_rectangle_free_list_and_elements); + g_free (data); } static MetaWorkspaceLogicalMonitorData *