summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2018-06-24 18:13:48 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2018-06-24 18:13:48 -0500
commitcf8d00bf2d7d87dd0867aef2b9b97635e6a7ba75 (patch)
tree0f99f0f69e7049891dc60a2c91e390a209a0af34
parente07828601c1ab37b8b0aa7011c4cb1e03d7695d6 (diff)
downloadepiphany-cf8d00bf2d7d87dd0867aef2b9b97635e6a7ba75.tar.gz
Fix leak in adblock_filter_retrieve_data_new
-rw-r--r--embed/ephy-filters-manager.c4
1 files 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);