notebook: Don't leak the pages property

We were misuing a transfer-full getter here.
This commit is contained in:
Matthias Clasen 2021-03-27 19:11:25 -04:00
parent 45f4090eec
commit afc3de6e04

View File

@ -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);