From 371e3d7cb45ed908ce2f04d9972129c69ff156eb Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Mon, 28 Jan 2019 02:57:40 -0500 Subject: fix crash on removing tray *clear applet gsettings on dispose to stop crash and memory leak introduced in github.com/mate-desktop/mate-panel/commit/10b9c30fc79de5f8d9516ba153df233c4968da65 *tray: fix misplaced g_return_if_fail check --- applets/notification_area/na-grid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applets/notification_area/na-grid.c') diff --git a/applets/notification_area/na-grid.c b/applets/notification_area/na-grid.c index bd87f139..8465fcab 100644 --- a/applets/notification_area/na-grid.c +++ b/applets/notification_area/na-grid.c @@ -183,9 +183,9 @@ void na_grid_set_min_icon_size (NaGrid *grid, gint min_icon_size) { - grid->min_icon_size = min_icon_size; - g_return_if_fail (NA_IS_GRID (grid)); + + grid->min_icon_size = min_icon_size; refresh_grid (grid); } -- cgit v1.2.1