[gnome-online-accounts/gnome-3-26] web-extension: Don't leak the WebKitDOMNodeList
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-26] web-extension: Don't leak the WebKitDOMNodeList
- Date: Thu, 14 Dec 2017 17:01:34 +0000 (UTC)
commit 24cb53c83a45f9b158f529ba6ac734c2473fb8c8
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Nov 20 18:10:53 2017 +0100
web-extension: Don't leak the WebKitDOMNodeList
src/goabackend/goawebextension.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goawebextension.c b/src/goabackend/goawebextension.c
index cbbd6d2..e331d89 100644
--- a/src/goabackend/goawebextension.c
+++ b/src/goabackend/goawebextension.c
@@ -77,7 +77,7 @@ web_extension_document_loaded_cb (WebKitWebPage *web_page, gpointer user_data)
GoaWebExtension *self = GOA_WEB_EXTENSION (user_data);
WebKitDOMDocument *document;
WebKitDOMDOMWindow *dom_window;
- WebKitDOMNodeList *elements;
+ WebKitDOMNodeList *elements = NULL;
gulong element_count;
gulong i;
@@ -141,6 +141,8 @@ web_extension_document_loaded_cb (WebKitWebPage *web_page, gpointer user_data)
}
}
}
+
+ g_clear_object (&elements);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]