diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-08-07 17:20:03 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-08-07 17:20:03 +0800 |
commit | a0b11ce4ac8602a77e51c64d904ee9314bc9d10b (patch) | |
tree | 2f8b49325eed859aa8a14c2f5bdb1970a326a0b4 /e-util/e-web-view.c | |
parent | ba8b45931956123e1621a669aee661e21c3287c0 (diff) | |
download | gsoc2013-evolution-a0b11ce4ac8602a77e51c64d904ee9314bc9d10b.tar gsoc2013-evolution-a0b11ce4ac8602a77e51c64d904ee9314bc9d10b.tar.gz gsoc2013-evolution-a0b11ce4ac8602a77e51c64d904ee9314bc9d10b.tar.bz2 gsoc2013-evolution-a0b11ce4ac8602a77e51c64d904ee9314bc9d10b.tar.lz gsoc2013-evolution-a0b11ce4ac8602a77e51c64d904ee9314bc9d10b.tar.xz gsoc2013-evolution-a0b11ce4ac8602a77e51c64d904ee9314bc9d10b.tar.zst gsoc2013-evolution-a0b11ce4ac8602a77e51c64d904ee9314bc9d10b.zip |
Reduce the memory used by DOM variables
Free some of the DOM variables when they are not needed, before they are
automatically freed when the frame is destroyed
Diffstat (limited to 'e-util/e-web-view.c')
-rw-r--r-- | e-util/e-web-view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c index ed8324c1b1..8a3b9c794b 100644 --- a/e-util/e-web-view.c +++ b/e-util/e-web-view.c @@ -2536,6 +2536,7 @@ web_view_get_frame_selection_html (WebKitDOMElement *iframe) if (text != NULL) return text; } + g_object_unref (frames); return NULL; } @@ -2568,6 +2569,7 @@ e_web_view_get_selection_html (EWebView *web_view) if (text != NULL) return text; } + g_object_unref (frames); return NULL; } @@ -3368,6 +3370,7 @@ add_css_rule_into_style_sheet_recursive (WebKitDOMDocument *document, selector, style); } + g_object_unref (frames); } /** |