[evolution] EMailReader - Fix more leaks of WebKit objects
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EMailReader - Fix more leaks of WebKit objects
- Date: Fri, 27 Feb 2015 10:33:18 +0000 (UTC)
commit 179495034cffb914285b70d6ce5bdeba22553282
Author: Tomas Popela <tpopela redhat com>
Date: Fri Feb 27 09:01:15 2015 +0100
EMailReader - Fix more leaks of WebKit objects
Also remove outdated comment.
mail/e-mail-reader.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index 28cf302..8a6d255 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -2614,11 +2614,12 @@ mail_reader_key_press_event_cb (EMailReader *reader,
if (frame != NULL) {
dom = webkit_web_frame_get_dom_document (frame);
- /* intentionally used "static_cast" */
element = webkit_dom_html_document_get_active_element (WEBKIT_DOM_HTML_DOCUMENT
(dom));
- if (element != NULL)
+ if (element != NULL) {
name = webkit_dom_node_get_node_name (WEBKIT_DOM_NODE (element));
+ g_object_unref (element);
+ }
/* If INPUT or TEXTAREA has focus,
* then any key press should go there. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]