[libgda] batch: fix retreive of private struct
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] batch: fix retreive of private struct
- Date: Wed, 12 Sep 2018 11:55:35 +0000 (UTC)
commit dd5216085e54587317f5a5a98c30af1d961b45fd
Author: Daniel Espinosa <esodan gmail com>
Date: Thu Sep 6 08:41:59 2018 -0500
batch: fix retreive of private struct
libgda/gda-batch.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-batch.c b/libgda/gda-batch.c
index d00b2001c..ed2332df2 100644
--- a/libgda/gda-batch.c
+++ b/libgda/gda-batch.c
@@ -185,10 +185,10 @@ gda_batch_copy (GdaBatch *orig)
g_return_val_if_fail (GDA_IS_BATCH (orig), NULL);
GdaBatchPrivate *opriv = gda_batch_get_instance_private (orig);
- GdaBatchPrivate *priv = gda_batch_get_instance_private (batch);
obj = g_object_new (GDA_TYPE_BATCH, NULL);
batch = (GdaBatch *) obj;
+ GdaBatchPrivate *priv = gda_batch_get_instance_private (batch);
for (list = opriv->statements; list; list = list->next) {
GdaStatement *copy;
@@ -207,9 +207,9 @@ gda_batch_dispose (GObject *object)
g_return_if_fail (object != NULL);
g_return_if_fail (GDA_IS_BATCH (object));
- GdaBatchPrivate *priv = gda_batch_get_instance_private (batch);
batch = GDA_BATCH (object);
+ GdaBatchPrivate *priv = gda_batch_get_instance_private (batch);
if (priv->statements) {
g_slist_foreach (priv->statements, (GFunc) g_object_unref, NULL);
g_slist_free (priv->statements);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]