This crash was tricky since 'length' looked correct while in fact
it is the number of items including invalid items, which can be
more than we store.
g_free (filter);
}
while (gtk_tree_model_iter_next (model, iter));
- filters[length] = NULL;
- midori_extension_set_string_list (extension, "filters", filters, length);
+ filters[i] = NULL;
+ midori_extension_set_string_list (extension, "filters", filters, i);
g_free (filters);
if (need_reload)
adblock_reload_rules (extension);