-
Jehan authored
We were not properly duplicating the left and right colors when duplicating the existing segments in gradient_editor_save_selection(). Therefore we ended up freeing original GeglColor on exiting the GimpColorDialog. Additionally to the reported crash, I add a few GeglColor freeing which were leaked and some safeguard in gimp_gradient_get_flat_color() to ensure it always returns a color (or raise a CRITICAL to be investigated easily). Finally a few signals in GimpColorDialog had to be ensured disconnected when the dialog is destroyed.