summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2021-05-04 15:11:44 -0500
committerMarge Bot <marge-bot@gnome.org>2021-05-07 19:40:24 +0000
commitd9f3dfad4798767e628ce0e7669e141f3b329bd2 (patch)
treef263692ceabe558aff98a2fd08d17ccd73f3a665
parent3ce5510238f25c8a0de2428b7b24693f78bac296 (diff)
downloadepiphany-d9f3dfad4798767e628ce0e7669e141f3b329bd2.tar.gz
history-dialog: be careful not to leak self->urls
I don't *think* this can happen, but let's be certain it really cannot happen. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/960>
-rw-r--r--src/ephy-history-dialog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ephy-history-dialog.c b/src/ephy-history-dialog.c
index 8e5340cf1..1fc33860d 100644
--- a/src/ephy-history-dialog.c
+++ b/src/ephy-history-dialog.c
@@ -276,6 +276,8 @@ on_find_urls_cb (gpointer service,
if (!success)
return;
+ if (self->urls)
+ ephy_history_url_list_free (self->urls);
self->urls = ephy_history_url_list_copy (result_data);
clear_listbox (self->listbox);