[epiphany] ephy-history-service: plug a few more leaks



commit 8561422eb31ec4b0f4797fd68606d95967192b0e
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Mar 8 11:20:24 2012 +0200

    ephy-history-service: plug a few more leaks

 lib/history/ephy-history-service-hosts-table.c |    2 ++
 lib/history/ephy-history-service.c             |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/history/ephy-history-service-hosts-table.c b/lib/history/ephy-history-service-hosts-table.c
index d323f6d..9312d73 100644
--- a/lib/history/ephy-history-service-hosts-table.c
+++ b/lib/history/ephy-history-service-hosts-table.c
@@ -390,6 +390,8 @@ get_hostname_and_locations (const gchar *url, gchar **hostname)
       host_locations = g_list_append (host_locations, location);
     }
   }
+  g_free (scheme);
+
   return host_locations;
 }
 
diff --git a/lib/history/ephy-history-service.c b/lib/history/ephy-history-service.c
index 436aa1c..3a6c3fa 100644
--- a/lib/history/ephy-history-service.c
+++ b/lib/history/ephy-history-service.c
@@ -968,6 +968,7 @@ ephy_history_service_find_urls (EphyHistoryService *self,
 
   ephy_history_service_query_urls (self,
                                    query, callback, user_data);
+  ephy_history_query_free (query);
 }
 
 void
@@ -999,4 +1000,5 @@ ephy_history_service_find_hosts (EphyHistoryService *self,
 
   ephy_history_service_query_hosts (self,
                                     query, callback, user_data);
+  ephy_history_query_free (query);
 }



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