[epiphany] Fix leak in adblock_filter_retrieve_data_new



commit cf8d00bf2d7d87dd0867aef2b9b97635e6a7ba75
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Jun 24 18:13:48 2018 -0500

    Fix leak in adblock_filter_retrieve_data_new

 embed/ephy-filters-manager.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-filters-manager.c b/embed/ephy-filters-manager.c
index 7e4cebcef..d69e1c2c9 100644
--- a/embed/ephy-filters-manager.c
+++ b/embed/ephy-filters-manager.c
@@ -88,7 +88,7 @@ typedef struct {
 static AdblockFilterRetrieveData *
 adblock_filter_retrieve_data_new (EphyFiltersManager *manager,
                                   EphyDownload       *download,
-                                  char               *source_uri)
+                                  const char         *source_uri)
 {
   AdblockFilterRetrieveData* data;
   data = g_slice_new (AdblockFilterRetrieveData);
@@ -156,7 +156,7 @@ start_retrieving_filter_file (EphyFiltersManager *manager,
   wk_download = ephy_download_get_webkit_download (download);
   webkit_download_set_allow_overwrite (wk_download, TRUE);
 
-  data = adblock_filter_retrieve_data_new (manager, download, g_strdup (filter_url));
+  data = adblock_filter_retrieve_data_new (manager, download, filter_url);
 
   g_signal_connect (download, "completed",
                     G_CALLBACK (download_completed_cb), data);


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