[libsoup/hsts: 5/36] SoupHSTSEnforcerDB: drop g_clear_pointer in finalize()



commit b2326cc46497ba797202bbfbb86599beb70d44db
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed Aug 15 16:43:54 2018 +0300

    SoupHSTSEnforcerDB: drop g_clear_pointer in finalize()
    
    finalize() is called once, no need to use g_clear_pointer()

 libsoup/soup-hsts-enforcer-db.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libsoup/soup-hsts-enforcer-db.c b/libsoup/soup-hsts-enforcer-db.c
index fc211827..21104b6b 100644
--- a/libsoup/soup-hsts-enforcer-db.c
+++ b/libsoup/soup-hsts-enforcer-db.c
@@ -58,7 +58,7 @@ soup_hsts_enforcer_db_finalize (GObject *object)
        SoupHSTSEnforcerDBPrivate *priv = SOUP_HSTS_ENFORCER_DB (object)->priv;
 
        g_free (priv->filename);
-       g_clear_pointer (&priv->db, sqlite3_close);
+       sqlite3_close (priv->db);
 
        G_OBJECT_CLASS (soup_hsts_enforcer_db_parent_class)->finalize (object);
 }


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