Gtk-WARNING: A floating object was finalized
Compiling a Geary wip branch against curent vala master, I'm getting a GTK warning when constructing a new object directly as an argument when chaining up in another's constrcutor. This isn't an issue in 0.40.
E.g. something like this:
private abstract class CustomContainer : BaseContainer<Gtk.Entry> {
public CustomContainer() {
base(new Gtk.Entry());
}
}
Produces this GTK warning when CustomContainer is instantiated:
(geary:18047): Gtk-WARNING **: 11:41:24.794: A floating object was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().