diff -urN simple-scan-3.25.1.old/src/ui.vala simple-scan-3.25.1/src/ui.vala --- simple-scan-3.25.1.old/src/ui.vala 2017-04-25 04:10:18.000000000 +0100 +++ simple-scan-3.25.1/src/ui.vala 2017-04-25 13:38:49.425811115 +0100 @@ -467,7 +467,7 @@ for (i = 0; i < n_delete; i++) { device_model.iter_nth_child (out iter, null, index); - device_model.remove (iter); + device_model.remove (ref iter); } } else @@ -480,7 +480,7 @@ /* Remove any remaining devices */ while (device_model.iter_nth_child (out iter, null, index)) - device_model.remove (iter); + device_model.remove (ref iter); /* Select the previously selected device or the first available device */ if (!have_selection)