summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2021-02-09 23:15:53 -0800
committerrbuj <[email protected]>2021-02-10 09:08:51 +0100
commitf3ca70b17ab367547e18b6554105e83deb3a8d8d (patch)
treeb916d4539cc59f12b8ad509db0c568db75ff6fad /src
parentf60656367338fe67dbf1ce47c91acebd54df4211 (diff)
downloadmate-notification-daemon-f3ca70b17ab367547e18b6554105e83deb3a8d8d.tar.bz2
mate-notification-daemon-f3ca70b17ab367547e18b6554105e83deb3a8d8d.tar.xz
Use notify_stack_destroy() instead of g_clear_object() for stacks (which are not GObjects)]
Diffstat (limited to 'src')
-rw-r--r--src/daemon/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index d63545b..00c6f96 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -490,7 +490,7 @@ static void destroy_screen(NotifyDaemon* daemon)
gdkwindow = gdk_screen_get_root_window (screen);
gdk_window_remove_filter (gdkwindow, (GdkFilterFunc) screen_xevent_filter, daemon->screen);
for (i = 0; i < daemon->screen->n_stacks; i++) {
- g_clear_object (&daemon->screen->stacks[i]);
+ g_clear_pointer (&daemon->screen->stacks[i], notify_stack_destroy);
}
g_free (daemon->screen->stacks);