summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2021-02-09 23:15:53 -0800
committerRobert Antoni Buj Gelonch <[email protected]>2021-02-10 09:06:39 +0100
commit8aa591edc42aa519d0e9ac50c361093b449ac0eb (patch)
tree296fbcc632843b01fd95ea580e2856d31c0da4cb
parente3279fa6691cc211d80815d3642d12863bcd3136 (diff)
downloadmate-notification-daemon-8aa591edc42aa519d0e9ac50c361093b449ac0eb.tar.bz2
mate-notification-daemon-8aa591edc42aa519d0e9ac50c361093b449ac0eb.tar.xz
Use notify_stack_destroy() instead of g_clear_object() for stacks (which are not GObjects)]
-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 c36e31e..d582007 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -512,7 +512,7 @@ static void destroy_screen(NotifyDaemon* daemon)
#endif /* HAVE_X11 */
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);