Skip to content

leaflet: Clear the children list on disposal

Andrea Veri requested to merge leaflet-fix into master

This hopefully fixes https://source.puri.sm/Librem5/libhandy/issues/42.

I can't be sure if it fixes it as we didn't manage to reproduce the issue in a sure way.

To test it and be confident it should solve the issue, I added this at the top of hdy_leaflet_forall():

  if (callback == gtk_widget_destroy)
    g_assert (priv->children == NULL);

Without the fix, the assertion is always false, and with it it seems to only be true, so it should work.

Merge request reports