stack: clear accessible parent when removing child
authorChristian Hergert <chergert@redhat.com>
Tue, 28 Feb 2023 23:05:56 +0000 (15:05 -0800)
committerChristian Hergert <chergert@redhat.com>
Tue, 28 Feb 2023 23:08:20 +0000 (15:08 -0800)
commit40d4441fd85742837d85d8509dc89355d39a1cdc
tree9e8d5a1d61650d49db52c3ae398a6cd85d3c90d2
parent471ebabd77c014f47fbe162becfd98a8fb37c954
stack: clear accessible parent when removing child

Without this, the GtkStackPage may not reach a reference count of zero
and therefore will be leaked.

Fixes #5626
gtk/gtkstack.c