Fix a crash caused by freeing the adblock filters in the wrong way

This commit is contained in:
Christian Dywan 2009-10-03 13:24:43 +02:00
parent 096a48b14c
commit 7c2eb4de16

View file

@ -169,7 +169,7 @@ adblock_preferences_model_row_changed_cb (GtkTreeModel* model,
while (gtk_tree_model_iter_next (model, iter));
filters[length] = NULL;
midori_extension_set_string_list (extension, "filters", filters, length);
g_strfreev (filters);
g_free (filters);
if (need_reload)
adblock_reload_rules (extension);
}