ethumb: Unref edbus object and proxy

Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 80954
This commit is contained in:
José Roberto de Souza 2012-12-14 14:31:46 +00:00 committed by Lucas De Marchi
parent 3349f33c0b
commit b54182807b
1 changed files with 4 additions and 0 deletions

View File

@ -196,6 +196,7 @@ static void
_ethumb_client_free(Ethumb_Client *client)
{
void *data;
EDBus_Object *obj;
if (!client->connected)
goto end_connection;
@ -235,6 +236,9 @@ end_connection:
edbus_name_owner_changed_callback_del(client->conn, _ethumb_dbus_bus_name,
_ethumb_client_name_owner_changed,
client);
obj = edbus_proxy_object_get(client->proxy);
edbus_proxy_unref(client->proxy);
edbus_object_unref(obj);
edbus_connection_unref(client->conn);
if (client->connect.free_data)