diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-03-27 19:11:25 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-03-27 19:11:56 -0400 |
commit | afc3de6e0456232fdcaa51eeaf7f670345274afb (patch) | |
tree | 97e761a7886173b8ee41aa7c6580282fce5e92de /gtk/gtknotebook.c | |
parent | 45f4090eecae72b026aea93155339868ca5f8881 (diff) | |
download | gtk+-afc3de6e0456232fdcaa51eeaf7f670345274afb.tar.gz |
notebook: Don't leak the pages property
We were misuing a transfer-full getter here.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 3e65f125c8..380cd51e5e 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1972,7 +1972,7 @@ gtk_notebook_get_property (GObject *object, g_value_set_string (value, gtk_notebook_get_group_name (notebook)); break; case PROP_PAGES: - g_value_set_object (value, gtk_notebook_get_pages (notebook)); + g_value_take_object (value, gtk_notebook_get_pages (notebook)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); |