static void ephy_sqlite_connection_finalize (GObject *self) { g_free (EPHY_SQLITE_CONNECTION (self)->database_path); ephy_sqlite_connection_close (EPHY_SQLITE_CONNECTION (self)); G_OBJECT_CLASS (ephy_sqlite_connection_parent_class)->finalize (self); }
static void ephy_history_service_close_database_connections (EphyHistoryService *self) { EphyHistoryServicePrivate *priv = EPHY_HISTORY_SERVICE (self)->priv; g_assert (priv->history_thread == g_thread_self ()); ephy_sqlite_connection_close (priv->history_database); g_object_unref (priv->history_database); priv->history_database = NULL; }