Commit 81f0b3b9 authored by Daniel Espinosa Ortiz's avatar Daniel Espinosa Ortiz

GdaDataModelIter: improve datamodel property get

parent b3bb804c
......@@ -611,9 +611,8 @@ gda_data_model_iter_get_property (GObject *object,
case PROP_DATA_MODEL:
{
GObject *obj = g_weak_ref_get (&priv->data_model);
g_value_set_object (value, obj);
if (obj != NULL) {
g_object_unref (obj);
g_value_take_object (value, obj);
}
}
break;
......@@ -621,9 +620,8 @@ gda_data_model_iter_get_property (GObject *object,
{
g_warning ("Deprecated property, not to be used");
GObject *obj = g_weak_ref_get (&priv->data_model);
g_value_set_object (value, obj);
if (obj != NULL) {
g_object_unref (obj);
g_value_take_object (value, obj);
}
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment