port-qmi: Increase the reference counter of the QrtrNode

Currently, we are not increasing the reference counter of the QrtrNode
when creating a PortQmi for a QRTR port, and we are clearing the object
when disposing the port.
This commit is contained in:
Andrew Lassalle
2021-06-22 14:43:59 -07:00
parent 6175cf562f
commit b0f40cf966

View File

@@ -2525,8 +2525,8 @@ set_property (GObject *object,
switch (prop_id) { switch (prop_id) {
case PROP_NODE: case PROP_NODE:
/* construct only, no new reference! */ g_clear_object (&self->priv->node);
self->priv->node = g_value_get_object (value); self->priv->node = g_value_dup_object (value);
break; break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);