[evolution] EHTMLEditorSelection - Don't unref the EHTMLEditorView when it is used afterwards



commit 3ed6b7f3f6a45026655c32783af3f389effddb58
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Feb 20 08:11:47 2015 +0100

    EHTMLEditorSelection - Don't unref the EHTMLEditorView when it is used afterwards

 e-util/e-html-editor-selection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 2637ca2..eb3bb0f 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -2499,13 +2499,13 @@ e_html_editor_selection_set_block_format (EHTMLEditorSelection *selection,
 
        e_html_editor_view_force_spell_check_for_current_paragraph (view);
 
-       g_object_unref (view);
-
        /* When changing the format we need to re-set the alignment */
        e_html_editor_selection_set_alignment (selection, selection->priv->alignment);
 
        e_html_editor_view_set_changed (view, TRUE);
 
+       g_object_unref (view);
+
        g_object_notify (G_OBJECT (selection), "block-format");
 }
 


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