From a0b11ce4ac8602a77e51c64d904ee9314bc9d10b Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Thu, 7 Aug 2014 11:20:03 +0200 Subject: 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 --- e-util/e-web-view.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'e-util/e-web-view.c') 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); } /** -- cgit v1.2.3