[evolution] EHTMLEditorSelection - Try to unref the node when it is set



commit 2bda77658a69fbe53150334ed5ebd30a9ef35d53
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Oct 2 10:45:54 2014 +0200

    EHTMLEditorSelection - Try to unref the node when it is set

 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 f43244e..c64b5e0 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -918,7 +918,8 @@ e_html_editor_selection_has_text (EHTMLEditorSelection *selection)
                }
        }
 
-       g_object_unref (node);
+       if (node)
+               g_object_unref (node);
 
        return FALSE;
 }


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