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



commit c517a105a36e8eb9360ef6b1036ccc55f8f9f443
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Mar 1 13:16:40 2016 +0100

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

 .../e-html-editor-selection-dom-functions.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c 
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index 9a4fbce..b9389c7 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -2457,7 +2457,7 @@ wrap_lines (WebKitDOMDocument *document,
                        }
 
                        /* 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]