From 3f2e86f67c04a494449c1b08c64c8dd08d823777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 15 May 2019 16:42:37 -0500 Subject: [PATCH] theme: Remove DEBUG_FILL_STRUCT This debug statement is actually applied all the times, while it could be useful for crashes analysis, these days the same can be done using `MALLOC_CHECK_` and `MALLOC_PERTURB_` env variables. https://gitlab.gnome.org/GNOME/mutter/merge_requests/581 --- src/ui/theme.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ui/theme.c b/src/ui/theme.c index b7618d9c0..6817b5beb 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -31,8 +31,6 @@ #include "meta/prefs.h" #include "ui/frames.h" -#define DEBUG_FILL_STRUCT(s) memset ((s), 0xef, sizeof (*(s))) - static void scale_border (GtkBorder *border, double factor); static MetaFrameLayout * @@ -58,7 +56,6 @@ meta_frame_layout_free (MetaFrameLayout *layout) { g_return_if_fail (layout != NULL); - DEBUG_FILL_STRUCT (layout); g_free (layout); } @@ -967,7 +964,6 @@ meta_theme_free (MetaTheme *theme) if (theme->layouts[i]) meta_frame_layout_free (theme->layouts[i]); - DEBUG_FILL_STRUCT (theme); g_free (theme); }