diff --git a/demos/gtk-demo/listview_colors.c b/demos/gtk-demo/listview_colors.c index f809b73c1b..b63f2366e0 100644 --- a/demos/gtk-demo/listview_colors.c +++ b/demos/gtk-demo/listview_colors.c @@ -226,7 +226,7 @@ gtk_color_set_property (GObject *object, break; case PROP_COLOR: - self->color = *(GdkRGBA *) g_value_dup_boxed (value); + self->color = *(GdkRGBA *) g_value_get_boxed (value); rgb_to_hsv (&self->color, &h, &s, &v); self->h = round (360 * h); self->s = round (100 * s); diff --git a/demos/gtk-demo/listview_settings.c b/demos/gtk-demo/listview_settings.c index 03ed9642e4..3bb674117b 100644 --- a/demos/gtk-demo/listview_settings.c +++ b/demos/gtk-demo/listview_settings.c @@ -358,6 +358,8 @@ do_listview_settings (GtkWidget *do_widget) builder = gtk_builder_new (); gtk_builder_set_scope (builder, scope); + g_object_unref (scope); + gtk_builder_add_from_resource (builder, "/listview_settings/listview_settings.ui", NULL); window = GTK_WIDGET (gtk_builder_get_object (builder, "window"));