[libgda] Autotools: fix make check for GdaDataModelIter
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Autotools: fix make check for GdaDataModelIter
- Date: Tue, 14 Aug 2018 17:10:27 +0000 (UTC)
commit 026e723ef2d51bd6ed16b907997f5719c5cf99eb
Author: Daniel Espinosa <esodan gmail com>
Date: Tue Aug 14 12:09:16 2018 -0500
Autotools: fix make check for GdaDataModelIter
libgda/gda-data-model-iter.c | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/libgda/gda-data-model-iter.c b/libgda/gda-data-model-iter.c
index 9cbd28934..6b6d4d1f1 100644
--- a/libgda/gda-data-model-iter.c
+++ b/libgda/gda-data-model-iter.c
@@ -460,18 +460,15 @@ gda_data_model_iter_finalize (GObject *object)
g_return_if_fail (object != NULL);
g_return_if_fail (GDA_IS_DATA_MODEL_ITER (object));
- GdaDataModelIterPrivate *priv = gda_data_model_iter_get_instance_private (iter);
-
iter = GDA_DATA_MODEL_ITER (object);
- if (priv) {
- if (priv->data_model) {
- g_signal_handler_disconnect (priv->data_model, priv->model_changes_signals [0]);
- g_signal_handler_disconnect (priv->data_model, priv->model_changes_signals [1]);
- g_signal_handler_disconnect (priv->data_model, priv->model_changes_signals [2]);
- g_object_remove_weak_pointer (G_OBJECT (priv->data_model),
- (gpointer*) &(priv->data_model));
- priv->data_model = NULL;
- }
+ GdaDataModelIterPrivate *priv = gda_data_model_iter_get_instance_private (iter);
+ if (priv->data_model) {
+ g_signal_handler_disconnect (priv->data_model, priv->model_changes_signals [0]);
+ g_signal_handler_disconnect (priv->data_model, priv->model_changes_signals [1]);
+ g_signal_handler_disconnect (priv->data_model, priv->model_changes_signals [2]);
+ g_object_remove_weak_pointer (G_OBJECT (priv->data_model),
+ (gpointer*) &(priv->data_model));
+ priv->data_model = NULL;
}
/* parent class */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]