[epiphany/mcatanzaro/history-dialog: 2/2] history-dialog: be careful not to leak self->urls
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/history-dialog: 2/2] history-dialog: be careful not to leak self->urls
- Date: Tue, 4 May 2021 20:12:33 +0000 (UTC)
commit 9edf863a1d2750cd4d3c10ab8371493d3f6041a1
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue May 4 15:11:44 2021 -0500
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.
src/ephy-history-dialog.c | 2 ++
1 file changed, 2 insertions(+)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]