[evolution] EHTMLEditorView - Unref GRegex only if they are created



commit ef36f9c71d2038edc44c24c188d2b0b40d6d9cd9
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Nov 21 08:49:12 2014 +0100

    EHTMLEditorView - Unref GRegex only if they are created

 e-util/e-html-editor-view.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index bda3db2..7e07b61 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -4402,9 +4402,9 @@ parse_html_into_paragraphs (EHTMLEditorView *view,
        webkit_dom_html_element_set_inner_html (
                WEBKIT_DOM_HTML_ELEMENT (blockquote), end->str, NULL);
 
-       if (regex_email)
+       if (regex_email != NULL)
                g_regex_unref (regex_email);
-       if (regex_link)
+       if (regex_link != NULL)
                g_regex_unref (regex_link);
        g_regex_unref (regex_nbsp);
        g_free (inner_html);


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