diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2021-05-04 15:11:44 -0500 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2021-05-07 19:40:24 +0000 |
commit | d9f3dfad4798767e628ce0e7669e141f3b329bd2 (patch) | |
tree | f263692ceabe558aff98a2fd08d17ccd73f3a665 | |
parent | 3ce5510238f25c8a0de2428b7b24693f78bac296 (diff) | |
download | epiphany-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.c | 2 |
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); |