[evolution] EHTMLEditorSelection - Don't unref the EHTMLEditorView object when it is used afterwards
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorSelection - Don't unref the EHTMLEditorView object when it is used afterwards
- Date: Fri, 20 Feb 2015 07:40:49 +0000 (UTC)
commit f44326e2fe3adea478c4410d73ce3b132f38f479
Author: Tomas Popela <tpopela redhat com>
Date: Fri Feb 20 08:31:04 2015 +0100
EHTMLEditorSelection - Don't unref the EHTMLEditorView object when it is used afterwards
e-util/e-html-editor-selection.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 3e011ad..e05d5c8 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -5777,7 +5777,6 @@ e_html_editor_selection_wrap_lines (EHTMLEditorSelection *selection)
g_return_if_fail (view != NULL);
document = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view));
- g_object_unref (view);
e_html_editor_selection_save (selection);
selection_start_marker = webkit_dom_document_query_selector (
@@ -5840,6 +5839,8 @@ e_html_editor_selection_wrap_lines (EHTMLEditorSelection *selection)
e_html_editor_selection_restore (selection);
e_html_editor_view_force_spell_check_for_current_paragraph (view);
+
+ g_object_unref (view);
}
WebKitDOMElement *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]