[gnome-bluetooth/gnome-3-8] sendto: Unregister the agent when destroying



commit 7dceba55c197279d6a4da2806647f3b9bc9c3f55
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jun 24 16:45:29 2013 +0200

    sendto: Unregister the agent when destroying
    
    When finalizing the ObexAgent, release our object on D-Bus,
    otherwise we won't be able to re-register it to retry sending.

 sendto/obex-agent.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/sendto/obex-agent.c b/sendto/obex-agent.c
index cc0e2a8..69a5b4d 100644
--- a/sendto/obex-agent.c
+++ b/sendto/obex-agent.c
@@ -281,6 +281,7 @@ static void obex_agent_finalize(GObject *agent)
 
        DBG("agent %p", agent);
 
+       g_dbus_connection_unregister_object (priv->conn, priv->reg_id);
        g_bus_unwatch_name (priv->watch_id);
        g_free (priv->busname);
        g_free(priv->path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]