[epiphany] filters-manager: fix another crash



commit 197cf0201eb02a218a423530f8e5b1bd15c319b1
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 fa9402b2d..5887e847f 100644
--- a/embed/ephy-filters-manager.c
+++ b/embed/ephy-filters-manager.c
@@ -637,7 +637,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]