diff options
Diffstat (limited to 'serial/manager.c')
| -rw-r--r-- | serial/manager.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/serial/manager.c b/serial/manager.c index 378434e4..ec06ac0e 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -614,6 +614,12 @@ static int get_record(struct pending_connect *pc, uint32_t handle,  			DBUS_TYPE_UINT32, &handle,  			DBUS_TYPE_INVALID); +	/* Unref get_handles pending call */ +	if (pc->pcall) { +		dbus_pending_call_unref(pc->pcall); +		pc->pcall = NULL; +	} +  	if (!dbus_connection_send_with_reply(pc->conn, msg, &pc->pcall, -1)) {  		error("Can't send D-Bus message.");  		dbus_message_unref(msg); | 
