[evolution] Fix a possible memory leak in e-web-view.c:web_view_initialize()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Fix a possible memory leak in e-web-view.c:web_view_initialize()
- Date: Thu, 9 May 2019 09:23:10 +0000 (UTC)
commit 5535ba13935828f0f02493a6fe8242c12354c42d
Author: Milan Crha <mcrha redhat com>
Date: Thu May 9 11:24:27 2019 +0200
Fix a possible memory leak in e-web-view.c:web_view_initialize()
src/e-util/e-web-view.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/e-util/e-web-view.c b/src/e-util/e-web-view.c
index df5721300a..67c76f1778 100644
--- a/src/e-util/e-web-view.c
+++ b/src/e-util/e-web-view.c
@@ -1274,8 +1274,10 @@ web_view_initialize (WebKitWebView *web_view)
settings_schema = g_settings_schema_source_lookup (
g_settings_schema_source_get_default (), id, FALSE);
- if (settings_schema)
+ if (settings_schema) {
settings = e_util_ref_settings (id);
+ g_settings_schema_unref (settings_schema);
+ }
font_settings = e_util_ref_settings ("org.gnome.desktop.interface");
e_web_view_update_fonts_settings (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]