diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-03-27 19:10:53 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-03-27 19:11:56 -0400 |
commit | 45f4090eecae72b026aea93155339868ca5f8881 (patch) | |
tree | fdbf0be26607e6708eea42c27fc01aeedee065cf /gtk/gtkstack.c | |
parent | 4cf69fbc5e6290ab4a6dd3029f96b584338d8938 (diff) | |
download | gtk+-45f4090eecae72b026aea93155339868ca5f8881.tar.gz |
stack: Don't leak the pages property
We were misusing a transfer-full getter here.
Diffstat (limited to 'gtk/gtkstack.c')
-rw-r--r-- | gtk/gtkstack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c index e784b0c30f..4c7274d336 100644 --- a/gtk/gtkstack.c +++ b/gtk/gtkstack.c @@ -749,7 +749,7 @@ gtk_stack_get_property (GObject *object, g_value_set_boolean (value, gtk_stack_get_interpolate_size (stack)); break; case PROP_PAGES: - g_value_set_object (value, gtk_stack_get_pages (stack)); + g_value_take_object (value, gtk_stack_get_pages (stack)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); |