summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-15 14:33:48 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-15 14:33:48 +0000
commitd4da99698e5ce80c64d9ba4617e40062f8bde50c (patch)
treed15620db5b1d7195f958274df8177ee57938c5b4 /src/lib/ethumb
parentca0cc1cbc983954246e8e4a04dd7160301c2eb07 (diff)
efl/edbus: make all edbus_*_send() methods unref its msg
There's no reason to keep a msg after it was sent. Before this patch we had edbus_service_signal_send() unref'ing its msg and all the others not. Also, several users (particularly the edbus_proxy_send() ones) were forgetting to unref the msg. This patch makes all these methods unref the message after it has been succesfully sent: - edbus_connection_send() - edbus_object_send() - edbus_proxy_send() - edbus_service_signal_send() SVN revision: 82807
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r--src/lib/ethumb/client/ethumb_client.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/ethumb/client/ethumb_client.c b/src/lib/ethumb/client/ethumb_client.c
index cfe04887cf..9c2530323c 100644
--- a/src/lib/ethumb/client/ethumb_client.c
+++ b/src/lib/ethumb/client/ethumb_client.c
@@ -353,7 +353,6 @@ _ethumb_client_call_new(Ethumb_Client *client)
353 _ethumb_dbus_path, 353 _ethumb_dbus_path,
354 _ethumb_dbus_interface, "new"); 354 _ethumb_dbus_interface, "new");
355 edbus_connection_send(client->conn, msg, _ethumb_client_new_cb, client, -1); 355 edbus_connection_send(client->conn, msg, _ethumb_client_new_cb, client, -1);
356 edbus_message_unref(msg);
357} 356}
358 357
359static void 358static void
@@ -822,7 +821,6 @@ ethumb_client_ethumb_setup(Ethumb_Client *client)
822 821
823 edbus_proxy_send(client->proxy, msg, _ethumb_client_ethumb_setup_cb, 822 edbus_proxy_send(client->proxy, msg, _ethumb_client_ethumb_setup_cb,
824 client, -1); 823 client, -1);
825 edbus_message_unref(msg);
826} 824}
827 825
828/** 826/**
@@ -962,7 +960,6 @@ _ethumb_client_queue_add(Ethumb_Client *client, const char *file, const char *ke
962 _ethumb_client_queue_add_cb, 960 _ethumb_client_queue_add_cb,
963 pending, -1); 961 pending, -1);
964 client->pending_add = eina_list_append(client->pending_add, pending); 962 client->pending_add = eina_list_append(client->pending_add, pending);
965 edbus_message_unref(msg);
966 963
967 return pending->id; 964 return pending->id;
968} 965}