summaryrefslogtreecommitdiff
path: root/src/view.c
diff options
context:
space:
mode:
authorportix <none@none>2012-11-01 12:12:52 +0100
committerportix <none@none>2012-11-01 12:12:52 +0100
commit2529be6a2c5783fbdde70847787cba06cb46175b (patch)
treea4f101becd641b924ff6bbacbb33a5e36e746158 /src/view.c
parent7f06ede0fc6694f70604151c45434328a3fba8f2 (diff)
downloaddwb-2529be6a2c5783fbdde70847787cba06cb46175b.zip
Insert element hider rules using the dom-api
Diffstat (limited to 'src/view.c')
-rw-r--r--src/view.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/view.c b/src/view.c
index c6f81f94..fb240d60 100644
--- a/src/view.c
+++ b/src/view.c
@@ -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);