diff options
author | rbuj <[email protected]> | 2019-03-07 15:06:53 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-04-11 17:43:20 +0000 |
commit | 90da480f09838deeff34aa54fc8fe33607adf93a (patch) | |
tree | b473559c956c3a85dfd41f1a3b749d4b4c224f33 /src/core/workspace.c | |
parent | 33b50db83103e5260695706668e50798762adf90 (diff) | |
download | marco-90da480f09838deeff34aa54fc8fe33607adf93a.tar.bz2 marco-90da480f09838deeff34aa54fc8fe33607adf93a.tar.xz |
Replace meta_rectangle_free_list_and_elements with g_list_free_full
Use g_list_free_full
Diffstat (limited to 'src/core/workspace.c')
-rw-r--r-- | src/core/workspace.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/workspace.c b/src/core/workspace.c index dffb1ebf..98c33e20 100644 --- a/src/core/workspace.c +++ b/src/core/workspace.c @@ -156,11 +156,11 @@ meta_workspace_free (MetaWorkspace *workspace) { workspace_free_struts (workspace); for (i = 0; i < screen->n_xinerama_infos; i++) - meta_rectangle_free_list_and_elements (workspace->xinerama_region[i]); + g_list_free_full (workspace->xinerama_region[i], g_free); g_free (workspace->xinerama_region); - meta_rectangle_free_list_and_elements (workspace->screen_region); - meta_rectangle_free_list_and_elements (workspace->screen_edges); - meta_rectangle_free_list_and_elements (workspace->xinerama_edges); + g_list_free_full (workspace->screen_region, g_free); + g_list_free_full (workspace->screen_edges, g_free); + g_list_free_full (workspace->xinerama_edges, g_free); } g_free (workspace); @@ -560,11 +560,11 @@ meta_workspace_invalidate_work_area (MetaWorkspace *workspace) workspace_free_struts (workspace); for (i = 0; i < workspace->screen->n_xinerama_infos; i++) - meta_rectangle_free_list_and_elements (workspace->xinerama_region[i]); + g_list_free_full (workspace->xinerama_region[i], g_free); g_free (workspace->xinerama_region); - meta_rectangle_free_list_and_elements (workspace->screen_region); - meta_rectangle_free_list_and_elements (workspace->screen_edges); - meta_rectangle_free_list_and_elements (workspace->xinerama_edges); + g_list_free_full (workspace->screen_region, g_free); + g_list_free_full (workspace->screen_edges, g_free); + g_list_free_full (workspace->xinerama_edges, g_free); workspace->xinerama_region = NULL; workspace->screen_region = NULL; workspace->screen_edges = NULL; |