[libadwaita/wip/exalm/new-glib: 3/8] carousel: Unparent children in dispose()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/new-glib: 3/8] carousel: Unparent children in dispose()
- Date: Tue, 2 Nov 2021 21:15:46 +0000 (UTC)
commit 5c52a664ece101e37298e4f8fa986a48e77b7e02
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Nov 2 23:59:39 2021 +0500
carousel: Unparent children in dispose()
src/adw-carousel.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/adw-carousel.c b/src/adw-carousel.c
index 6a017cdc..5cfac2d4 100644
--- a/src/adw-carousel.c
+++ b/src/adw-carousel.c
@@ -735,6 +735,12 @@ adw_carousel_dispose (GObject *object)
{
AdwCarousel *self = ADW_CAROUSEL (object);
+ while (self->children) {
+ ChildInfo *info = self->children->data;
+
+ adw_carousel_remove (self, info->widget);
+ }
+
g_clear_object (&self->tracker);
g_clear_handle_id (&self->scroll_timeout_id, g_source_remove);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]