[evolution] EHTMLEditorDOMUtils - Don't leak a WebKitDOMNodeList object



commit a5b1edf9b98fa3b4481dd0a9eed5f91b1be7ebd3
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Aug 12 14:57:16 2015 +0200

    EHTMLEditorDOMUtils - Don't leak a WebKitDOMNodeList object

 e-util/e-html-editor-utils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-utils.c b/e-util/e-html-editor-utils.c
index 48b22bf..9e39800 100644
--- a/e-util/e-html-editor-utils.c
+++ b/e-util/e-html-editor-utils.c
@@ -555,7 +555,9 @@ merge_lists_if_possible (WebKitDOMNode *list)
 
                node = webkit_dom_node_list_item (lists, ii);
                merge_lists_if_possible (node);
+               g_object_unref (node);
        }
+       g_object_unref (lists);
 }
 
 WebKitDOMElement *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]