Fix two similar memory leaks in pgp and managesieve prefs.
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 10 Jul 2017 16:11:12 +0000 (18:11 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 10 Jul 2017 16:11:12 +0000 (18:11 +0200)
src/plugins/managesieve/sieve_prefs.c
src/plugins/pgpcore/prefs_gpg.c

index 8245d5a..06fa510 100644 (file)
@@ -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)
index c1f1491..19f6421 100644 (file)
@@ -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)