Hi Claudio,

On 02/20/2013 03:55 PM, Claudio Takahasi wrote:
This patch notifies the Agent implementation that it is no longer
registered to the service daemon.
---
  src/handsfree-audio.c | 15 ++++++++++++++-
  1 file changed, 14 insertions(+), 1 deletion(-)


<snip>

@@ -136,6 +147,8 @@ void __ofono_handsfree_audio_manager_cleanup(void)
        g_dbus_unregister_interface(ofono_dbus_get_connection(), "/",
                                                HFP_AUDIO_MANAGER_INTERFACE);

-       if (agent)
+       if (agent) {
+               agent_release(agent);
                agent_free(agent);
+       }
  }

Please note that at this point the main loop has been stopped, so it is unlikely for this message to ever reach the recipient.

Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to