[mutter/gnome-3-26] core: Plug leaks
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-26] core: Plug leaks
- Date: Tue, 7 Nov 2017 10:13:09 +0000 (UTC)
commit 2882ddec7b482bf65726c42350a5cf70f543860c
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Nov 6 20:38:43 2017 +0100
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(+), 0 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index dc4d8df..7faa61a 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 901de45..7866c15 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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]