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



commit c04a869c3664ce30aaf1bf384afdfed7ee4003b5
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Nov 27 17:48:14 2014 +0100

    EHTMLEditorView - Unref GRegex only if they are created

 e-util/e-html-editor-view-dom-functions.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view-dom-functions.c b/e-util/e-html-editor-view-dom-functions.c
index 4721ed5..2953ebd 100644
--- a/e-util/e-html-editor-view-dom-functions.c
+++ b/e-util/e-html-editor-view-dom-functions.c
@@ -3224,9 +3224,9 @@ parse_html_into_paragraphs (WebKitDOMDocument *document,
        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]