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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user