The segfault has nothing to do with the failed assertion. It happens while reading ICC profiles from ~/.local/share/share/devices/display. I will file a separate bug for this.
As far as the sorting goes the patch works for me as you may see on the attached screenshot. There is a slight mistake in the first version of the patch. The second's been made against 9930 from lp:inkscape. However, there is one thing I am sure, these are memory leaks. Please, someone who knows C++ and Glib better than I do check if there aren't any.
The segfault has nothing to do with the failed assertion. It happens while reading ICC profiles from ~/.local/ share/share/ devices/ display. I will file a separate bug for this.
As far as the sorting goes the patch works for me as you may see on the attached screenshot. There is a slight mistake in the first version of the patch. The second's been made against 9930 from lp:inkscape. However, there is one thing I am sure, these are memory leaks. Please, someone who knows C++ and Glib better than I do check if there aren't any.