aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-mail-signature-preview.c
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-08-07 17:20:03 +0800
committerTomas Popela <tpopela@redhat.com>2014-08-07 17:20:03 +0800
commita0b11ce4ac8602a77e51c64d904ee9314bc9d10b (patch)
tree2f8b49325eed859aa8a14c2f5bdb1970a326a0b4 /e-util/e-mail-signature-preview.c
parentba8b45931956123e1621a669aee661e21c3287c0 (diff)
downloadgsoc2013-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-mail-signature-preview.c')
-rw-r--r--e-util/e-mail-signature-preview.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-mail-signature-preview.c b/e-util/e-mail-signature-preview.c
index ecf64191b6..f125c8b33d 100644
--- a/e-util/e-mail-signature-preview.c
+++ b/e-util/e-mail-signature-preview.c
@@ -80,6 +80,7 @@ replace_local_image_links (WebKitDOMDocument *document)
g_free (new_src);
g_free (src);
}
+ g_object_unref (list);
list = webkit_dom_document_get_elements_by_tag_name ( document, "iframe");
length = webkit_dom_node_list_get_length (list);
@@ -96,6 +97,7 @@ replace_local_image_links (WebKitDOMDocument *document)
if (content_document && WEBKIT_DOM_IS_DOCUMENT (content_document))
replace_local_image_links (content_document);
}
+ g_object_unref (list);
}
static void