[libgda/sqlite: 1/5] connection: remove unnecesary callback



commit f2b15c211a9aa2e4979d97fb03769a38b2f054b5
Author: Daniel Espinosa <esodan gmail com>
Date:   Tue Oct 9 15:58:05 2018 -0500

    connection: remove unnecesary callback

 libgda/gda-connection.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index dece5200e..9762886eb 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -477,9 +477,6 @@ gda_connection_dispose (GObject *object)
        g_return_if_fail (GDA_IS_CONNECTION (cnc));
        GdaConnectionPrivate *priv = gda_connection_get_instance_private (cnc);
 
-       /* free memory */
-       gda_connection_close (cnc, NULL);
-
        if (priv->context_hash) {
                g_hash_table_destroy (priv->context_hash);
                priv->context_hash = NULL;
@@ -536,6 +533,10 @@ gda_connection_dispose (GObject *object)
                priv->trans_meta_context = NULL;
        }
 
+       /* free memory */
+       gda_connection_close (cnc, NULL);
+
+
        /* chain to parent class */
        parent_class->dispose (object);
 }
@@ -5939,9 +5940,6 @@ gda_connection_add_prepared_statement (GdaConnection *cnc, GdaStatement *gda_stm
        PreparedStatementRef *ref = _gda_prepared_estatement_new (gda_stmt, prepared_stmt);
        g_hash_table_insert (priv->prepared_stmts, gda_stmt, ref);
        
-       g_signal_connect (G_OBJECT (gda_stmt), "reset",
-                         G_CALLBACK (prepared_stmts_stmt_reset_cb), cnc);
-
        gda_connection_unlock ((GdaLockable*) cnc);
        g_object_unref (prepared_stmt);
        g_object_unref (gda_stmt);


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