diff options
author | portix <none@none> | 2012-11-01 12:12:52 +0100 |
---|---|---|
committer | portix <none@none> | 2012-11-01 12:12:52 +0100 |
commit | 2529be6a2c5783fbdde70847787cba06cb46175b (patch) | |
tree | a4f101becd641b924ff6bbacbb33a5e36e746158 /src/view.c | |
parent | 7f06ede0fc6694f70604151c45434328a3fba8f2 (diff) | |
download | dwb-2529be6a2c5783fbdde70847787cba06cb46175b.zip |
Insert element hider rules using the dom-api
Diffstat (limited to 'src/view.c')
-rw-r--r-- | src/view.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -911,7 +911,8 @@ view_create_web_view() { #endif status->progress = 0; status->allowed_plugins = NULL; - status->style = NULL; + status->exc_style = NULL; + status->styles = NULL; status->lockprotect = 0; status->frames = NULL; status->group = 0; @@ -1039,8 +1040,13 @@ view_clean(GList *gl) { scripts_remove_tab(v->script_wv); - if (v->status->style) { - g_object_unref(v->status->style); + if (v->status->exc_style) { + g_object_unref(v->status->exc_style); + } + if (v->status->styles) { + for (GSList *l = v->status->styles; l; l=l->next) + g_object_unref(l->data); + g_slist_free(v->status->styles); } g_object_unref(v->hover.anchor); |