[libadwaita/wip/exalm/unref: 2/2] view-switcher-bar: Fix a leak
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/unref: 2/2] view-switcher-bar: Fix a leak
- Date: Mon, 14 Feb 2022 10:00:32 +0000 (UTC)
commit 0997b62830da57cd2c3667ec07550ed823f0b586
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Feb 14 15:01:20 2022 +0500
view-switcher-bar: Fix a leak
src/adw-view-switcher-bar.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/adw-view-switcher-bar.c b/src/adw-view-switcher-bar.c
index 15e43d14..f7601329 100644
--- a/src/adw-view-switcher-bar.c
+++ b/src/adw-view-switcher-bar.c
@@ -111,6 +111,8 @@ update_bar_revealed (AdwViewSwitcherBar *self)
if (adw_view_stack_page_get_visible (page))
count++;
+
+ g_object_unref (page);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]