Fix a crash caused by freeing the adblock filters in the wrong way
This commit is contained in:
parent
096a48b14c
commit
7c2eb4de16
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ adblock_preferences_model_row_changed_cb (GtkTreeModel* model,
|
||||||
while (gtk_tree_model_iter_next (model, iter));
|
while (gtk_tree_model_iter_next (model, iter));
|
||||||
filters[length] = NULL;
|
filters[length] = NULL;
|
||||||
midori_extension_set_string_list (extension, "filters", filters, length);
|
midori_extension_set_string_list (extension, "filters", filters, length);
|
||||||
g_strfreev (filters);
|
g_free (filters);
|
||||||
if (need_reload)
|
if (need_reload)
|
||||||
adblock_reload_rules (extension);
|
adblock_reload_rules (extension);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue