[epiphany/gnome-3-34] filters-manager: fix another crash



commit d87e2f51341b89401d6c26112cc4c2e8466595c0
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Jan 22 15:22:54 2020 -0600

    filters-manager: fix another crash
    
    Third try! Follow-up to 8a1b7e6a and d436c774. Apparently we have just
    done a terrible job searching for bad frees within this file. I should
    have caught this in 8a1b7e6a, and Jan-Michael should have caught it in
    d436c774. Oh well.

 embed/ephy-filters-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/ephy-filters-manager.c b/embed/ephy-filters-manager.c
index c97198d6d..dfb0e42f6 100644
--- a/embed/ephy-filters-manager.c
+++ b/embed/ephy-filters-manager.c
@@ -636,7 +636,7 @@ filter_load_cb (WebKitUserContentFilterStore *store,
   g_assert (self);
   g_assert (store == self->manager->store);
 
-  g_clear_object (&self->manager->wk_filter);
+  g_clear_pointer (&self->manager->wk_filter, webkit_user_content_filter_unref);
   self->manager->wk_filter = webkit_user_content_filter_store_load_finish (self->manager->store,
                                                                            result,
                                                                            &error);


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