[evolution/gnome-3-18] EHTMLEditorView - Don't leak the WebKitDOMRange object when undoing the Return key press



commit 849943382b7c8903fa806d52025c7d7e9f2674b4
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Nov 13 12:52:58 2015 +0100

    EHTMLEditorView - Don't leak the WebKitDOMRange object when undoing the Return key press

 e-util/e-html-editor-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index ce76675..77c8bb4 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -12478,6 +12478,7 @@ undo_delete (EHTMLEditorView *view,
                        webkit_dom_dom_selection_remove_all_ranges (dom_selection);
                        webkit_dom_dom_selection_add_range (dom_selection, range);
                        g_object_unref (dom_selection);
+                       g_object_unref (range);
 
                        e_html_editor_selection_save (selection);
 


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