commit a03dec105e0a4daf41a71e912d7e88183384ba73 from: Tobias Heider date: Mon Feb 16 22:50:59 2026 UTC Remove the custom dispose hook It isn't needed and seems to cause problems on closing the application. commit - c9699bb019e4dc003c99044938d318c7f3416fc9 commit + a03dec105e0a4daf41a71e912d7e88183384ba73 blob - 4b859156e6c7cfb00ea69c97e7e7a5d9e58854f2 blob + 7dcf1a1aa8611b492a475b0429daf2f92034cff9 --- ctlitem.c +++ ctlitem.c @@ -47,7 +47,6 @@ static void siomixer_ctl_item_set_property(GObject *, const GValue *, GParamSpec *); static void siomixer_ctl_item_get_property(GObject *, guint, GValue *, GParamSpec *); -static void siomixer_ctl_item_dispose(GObject *); static char *_format_percent(GtkScale *, double, gpointer); static void siomixer_ctl_item_init(SiomixerCtlItem *); @@ -84,7 +83,6 @@ siomixer_ctl_item_class_init(SiomixerCtlItemClass *kla object_class->set_property = siomixer_ctl_item_set_property; object_class->get_property = siomixer_ctl_item_get_property; - object_class->dispose = siomixer_ctl_item_dispose; properties[PROP_LEVEL] = g_param_spec_int("level", "Level", "Volume level", 0, 255, 0, G_PARAM_READWRITE); @@ -132,20 +130,6 @@ siomixer_ctl_item_get_property(GObject *o, guint prope } } -static void -siomixer_ctl_item_dispose(GObject *o) -{ - SiomixerCtlItem *self = SIOMIXER_CTL_ITEM(o); - printf("dispose %p. self->binding: %s\n", o, self->binding ? "valid" : "NULL"); - if (self->binding) { - printf("Binding Refcount: %d\n", G_OBJECT(self->binding)->ref_count); - g_binding_unbind(self->binding); - g_object_unref(self->binding); - self->binding = NULL; - } - G_OBJECT_CLASS(siomixer_ctl_item_parent_class)->dispose(o); -} - SiomixerCtlItem * siomixer_ctl_item_new(struct sioctl_desc *d) {