[evolution/wip/webkit2] EHTMLEditorView - Don't leak the WebKitDOMRange object when undoing the Return key press
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorView - Don't leak the WebKitDOMRange object when undoing the Return key press
- Date: Wed, 2 Mar 2016 16:58:33 +0000 (UTC)
commit 33ae99551eda5b2e52bd4634778821c65a423cd4
Author: Tomas Popela <tpopela redhat com>
Date: Wed Mar 2 17:23:44 2016 +0100
EHTMLEditorView - Don't leak the WebKitDOMRange object when undoing the Return key press
.../composer/e-html-editor-undo-redo-manager.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-undo-redo-manager.c
b/web-extensions/composer/e-html-editor-undo-redo-manager.c
index 7e9d219..92e909e 100644
--- a/web-extensions/composer/e-html-editor-undo-redo-manager.c
+++ b/web-extensions/composer/e-html-editor-undo-redo-manager.c
@@ -513,6 +513,7 @@ undo_delete (WebKitDOMDocument *document,
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);
dom_selection_save (document);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]