[libsoup/hsts: 74/101] SoupHSTSEnforcerDB: drop g_clear_pointer in finalize()
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/hsts: 74/101] SoupHSTSEnforcerDB: drop g_clear_pointer in finalize()
- Date: Thu, 20 Sep 2018 14:25:40 +0000 (UTC)
commit f966bf9484f79ee8d8d129edf9f112084c93ec00
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]