[libadwaita/wip/exalm/pages2] Don't leak list models for 'pages' properties
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/pages2] Don't leak list models for 'pages' properties
- Date: Thu, 27 May 2021 08:47:37 +0000 (UTC)
commit 78c9aa3265e1f73bbecb6ff02a4bf5247ede6c81
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu May 27 13:45:59 2021 +0500
Don't leak list models for 'pages' properties
src/adw-leaflet.c | 2 +-
src/adw-squeezer.c | 2 +-
src/adw-tab-view.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/adw-leaflet.c b/src/adw-leaflet.c
index 6c767095..0ce04f1b 100644
--- a/src/adw-leaflet.c
+++ b/src/adw-leaflet.c
@@ -2150,7 +2150,7 @@ adw_leaflet_get_property (GObject *object,
g_value_set_boolean (value, adw_leaflet_get_can_unfold (self));
break;
case PROP_PAGES:
- g_value_set_object (value, adw_leaflet_get_pages (self));
+ g_value_take_object (value, adw_leaflet_get_pages (self));
break;
case PROP_ORIENTATION:
g_value_set_enum (value, self->orientation);
diff --git a/src/adw-squeezer.c b/src/adw-squeezer.c
index 4d5e8cf5..35a2ae01 100644
--- a/src/adw-squeezer.c
+++ b/src/adw-squeezer.c
@@ -720,7 +720,7 @@ adw_squeezer_get_property (GObject *object,
g_value_set_enum (value, get_orientation (self));
break;
case PROP_PAGES:
- g_value_set_object (value, adw_squeezer_get_pages (self));
+ g_value_take_object (value, adw_squeezer_get_pages (self));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
diff --git a/src/adw-tab-view.c b/src/adw-tab-view.c
index 0d283b3d..88b17e72 100644
--- a/src/adw-tab-view.c
+++ b/src/adw-tab-view.c
@@ -1339,7 +1339,7 @@ adw_tab_view_get_property (GObject *object,
break;
case PROP_PAGES:
- g_value_set_object (value, adw_tab_view_get_pages (self));
+ g_value_take_object (value, adw_tab_view_get_pages (self));
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]