[evolution] EHTMLEditorSelection - Remove the GObject data after using it to avoid possible mis-function



commit 4529d1227c03c91b088682a3950ea578f3a5fbb5
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Sep 4 11:18:19 2015 +0200

    EHTMLEditorSelection - Remove the GObject data after using it to avoid possible mis-function

 e-util/e-html-editor-selection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 6839575..8dada4b 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -6518,7 +6518,7 @@ wrap_lines (EHTMLEditorSelection *selection,
                        }
 
                        /* Allow anchors to break on any character. */
-                       if (g_object_get_data (G_OBJECT (node), "-x-evo-anchor-text"))
+                       if (g_object_steal_data (G_OBJECT (node), "-x-evo-anchor-text"))
                                offset = max_length;
                        else {
                                /* Find where we can line-break the node so that it


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