[epiphany/gnome-3-38] history-dialog: fix memory corruption



commit 23a1f050f6921e891fa9af21b5618d49d95ae4bc
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue May 4 15:11:06 2021 -0500

    history-dialog: fix memory corruption
    
    Since converting the history dialog from the hosts table to the URLs
    table, we have been using the wrong free function here. :/
    
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/960>
    
    
    (cherry picked from commit 3ce5510238f25c8a0de2428b7b24693f78bac296)

 src/ephy-history-dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ephy-history-dialog.c b/src/ephy-history-dialog.c
index 7066e8ffe..33855f628 100644
--- a/src/ephy-history-dialog.c
+++ b/src/ephy-history-dialog.c
@@ -311,7 +311,7 @@ remove_pending_sorter_source (EphyHistoryDialog *self,
   g_clear_handle_id (&self->sorter_source, g_source_remove);
 
   if (free_urls && self->urls) {
-    ephy_history_host_list_free (self->urls);
+    ephy_history_url_list_free (self->urls);
     self->urls = NULL;
   }
 }


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