[epiphany/mcatanzaro/#1104] search-engine-manager: fix leak during initialization



commit 1a1ec8d4e3b92ea084ebaff129a2b2e77b28de26
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Feb 17 13:59:31 2020 -0600

    search-engine-manager: fix leak during initialization
    
    Fixes #1104

 lib/ephy-search-engine-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/ephy-search-engine-manager.c b/lib/ephy-search-engine-manager.c
index 984ad1f89..a5872db8d 100644
--- a/lib/ephy-search-engine-manager.c
+++ b/lib/ephy-search-engine-manager.c
@@ -84,7 +84,7 @@ ephy_search_engine_manager_init (EphySearchEngineManager *manager)
   const char *address;
   const char *bang;
   char *name;
-  GVariantIter *iter = NULL;
+  g_autoptr (GVariantIter) iter = NULL;
 
   manager->search_engines = g_hash_table_new_full (g_str_hash,
                                                    g_str_equal,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]