[evolution/wip/webkit2] EHTMLEditorView - Don't leak a WebKitDOMNodeList instance



commit 49c8c09ff9ad403336ce62006cdd339b4ee59961
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Jun 29 16:59:15 2016 +0200

     EHTMLEditorView - Don't leak a WebKitDOMNodeList instance

 .../web-extension/e-editor-dom-functions.c         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-dom-functions.c 
b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index 71810dc..6d00044 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -3608,6 +3608,7 @@ remove_empty_blocks (WebKitDOMDocument *document)
                remove_node (node);
                g_object_unref (node);
        }
+       g_object_unref (list);
 
        list = webkit_dom_document_query_selector_all (
                document, "blockquote[type=cite]:empty", NULL);
@@ -3618,7 +3619,6 @@ remove_empty_blocks (WebKitDOMDocument *document)
                remove_node (node);
                g_object_unref (node);
        }
-
        g_object_unref (list);
 }
 


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