summaryrefslogtreecommitdiff
path: root/src/examples/edbus/complex-types-client-eina-value.c
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/examples/edbus/complex-types-client-eina-value.c
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/examples/edbus/complex-types-client-eina-value.c')
-rw-r--r--src/examples/edbus/complex-types-client-eina-value.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/examples/edbus/complex-types-client-eina-value.c b/src/examples/edbus/complex-types-client-eina-value.c
index bf0ba902e0..cde7c9b2ce 100644
--- a/src/examples/edbus/complex-types-client-eina-value.c
+++ b/src/examples/edbus/complex-types-client-eina-value.c
@@ -291,14 +291,12 @@ main(void)
291 msg = edbus_proxy_method_call_new(proxy, "ReceiveArrayOfStringIntWithSize"); 291 msg = edbus_proxy_method_call_new(proxy, "ReceiveArrayOfStringIntWithSize");
292 _fill_receive_array_of_string_int_with_size(msg, size_of_array, array_string); 292 _fill_receive_array_of_string_int_with_size(msg, size_of_array, array_string);
293 edbus_proxy_send(proxy, msg, on_receive_array_with_size, NULL, -1); 293 edbus_proxy_send(proxy, msg, on_receive_array_with_size, NULL, -1);
294 edbus_message_unref(msg);
295 294
296 edbus_proxy_call(proxy, "SendArray", on_send_array, NULL, -1 , ""); 295 edbus_proxy_call(proxy, "SendArray", on_send_array, NULL, -1 , "");
297 296
298 msg = edbus_proxy_method_call_new(proxy, "PlusOne"); 297 msg = edbus_proxy_method_call_new(proxy, "PlusOne");
299 _fill_plus_one(msg, 14); 298 _fill_plus_one(msg, 14);
300 edbus_proxy_send(proxy, msg, on_plus_one, NULL, -1); 299 edbus_proxy_send(proxy, msg, on_plus_one, NULL, -1);
301 edbus_message_unref(msg);
302 300
303 edbus_proxy_event_callback_add(proxy, 301 edbus_proxy_event_callback_add(proxy,
304 EDBUS_PROXY_EVENT_PROPERTY_CHANGED, 302 EDBUS_PROXY_EVENT_PROPERTY_CHANGED,