[evince/wip/gpoo/fix-warnings: 5/6] libview: Fix compilation warning on accessibility code path




commit ffe10b249c2603221d826a393251d43fd35d376d
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Sun Oct 17 10:19:55 2021 -0300

    libview: Fix compilation warning on accessibility code path

 libview/ev-page-accessible.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libview/ev-page-accessible.c b/libview/ev-page-accessible.c
index f3ddcb19..ece1ff6e 100644
--- a/libview/ev-page-accessible.c
+++ b/libview/ev-page-accessible.c
@@ -170,7 +170,9 @@ ev_page_accessible_finalize (GObject *object)
 {
        EvPageAccessiblePrivate *priv = EV_PAGE_ACCESSIBLE (object)->priv;
 
-       g_clear_pointer (&priv->links, (GDestroyNotify)g_hash_table_destroy);
+       g_hash_table_remove_all (priv->links);
+       g_hash_table_destroy (priv->links);
+       priv->links = NULL;
        clear_children (EV_PAGE_ACCESSIBLE (object));
 
        G_OBJECT_CLASS (ev_page_accessible_parent_class)->finalize (object);


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