From fb0b04b4f0a0c024e7f4021f329a3847705ba752 Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Mon, 10 Jul 2017 18:11:12 +0200 Subject: [PATCH] Fix two similar memory leaks in pgp and managesieve prefs. --- src/plugins/managesieve/sieve_prefs.c | 2 ++ src/plugins/pgpcore/prefs_gpg.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/plugins/managesieve/sieve_prefs.c b/src/plugins/managesieve/sieve_prefs.c index 8245d5a59..06fa5100d 100644 --- a/src/plugins/managesieve/sieve_prefs.c +++ b/src/plugins/managesieve/sieve_prefs.c @@ -338,6 +338,8 @@ static void sieve_prefs_account_create_widget_func(PrefsPage *_page, /* Free things */ g_object_unref(G_OBJECT(size_group)); + + sieve_prefs_account_free_config(config); } static void sieve_prefs_account_destroy_widget_func(PrefsPage *_page) diff --git a/src/plugins/pgpcore/prefs_gpg.c b/src/plugins/pgpcore/prefs_gpg.c index c1f149105..19f642195 100644 --- a/src/plugins/pgpcore/prefs_gpg.c +++ b/src/plugins/pgpcore/prefs_gpg.c @@ -457,6 +457,8 @@ static void prefs_gpg_account_create_widget_func(PrefsPage *_page, page->page.widget = vbox; page->account = account; prefs_gpg_update_sens(page); + + prefs_gpg_account_free_config(config); } static void prefs_gpg_account_destroy_widget_func(PrefsPage *_page) -- 2.25.1