Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lukefromdc authored and raveit65 committed Jan 29, 2019
1 parent c733d20 commit 371e3d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions applets/notification_area/main.c
Expand Up @@ -333,6 +333,7 @@ na_tray_applet_realize (GtkWidget *widget)
static void
na_tray_applet_dispose (GObject *object)
{
g_clear_object (&NA_TRAY_APPLET (object)->priv->settings);
#ifdef PROVIDE_WATCHER_SERVICE
g_clear_object (&NA_TRAY_APPLET (object)->priv->sn_watcher);
#endif
Expand Down
4 changes: 2 additions & 2 deletions applets/notification_area/na-grid.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 371e3d7

Please sign in to comment.