summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-15 14:35:07 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-15 14:35:07 +0000
commitd7b54313ad9cafb81793993c24c5d36fd70589a1 (patch)
treee52c16b8286ea6254c01209e8927bf68ae42ce7b
parentcfdc2b53df1814feb1d84decc81e2e8a04ebcca3 (diff)
elementary: follow edbus change about unref'ing messages after send
Don't unref the messages after calling edbus_*_send() since edbus automatically unrefs them. SVN revision: 82809
-rw-r--r--src/lib/elm_dbus_menu.c2
-rw-r--r--src/lib/elm_sys_notify.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/elm_dbus_menu.c b/src/lib/elm_dbus_menu.c
index 9a4f3398f..0e61fca9d 100644
--- a/src/lib/elm_dbus_menu.c
+++ b/src/lib/elm_dbus_menu.c
@@ -895,7 +895,6 @@ _elm_dbus_menu_app_menu_register(Ecore_X_Window xid, Eo *obj)
895 edbus_message_arguments_append(msg, "uo", (unsigned)xid, 895 edbus_message_arguments_append(msg, "uo", (unsigned)xid,
896 obj_path); 896 obj_path);
897 edbus_connection_send(sd->dbus_menu->bus, msg, NULL, NULL, -1); 897 edbus_connection_send(sd->dbus_menu->bus, msg, NULL, NULL, -1);
898 edbus_message_unref(msg);
899 sd->dbus_menu->xid = xid; 898 sd->dbus_menu->xid = xid;
900} 899}
901 900
@@ -919,7 +918,6 @@ _elm_dbus_menu_app_menu_unregister(Eo *obj)
919 REGISTRAR_INTERFACE, "UnregisterWindow"); 918 REGISTRAR_INTERFACE, "UnregisterWindow");
920 edbus_message_arguments_append(msg, "u", (unsigned)sd->dbus_menu->xid); 919 edbus_message_arguments_append(msg, "u", (unsigned)sd->dbus_menu->xid);
921 edbus_connection_send(sd->dbus_menu->bus, msg, NULL, NULL, -1); 920 edbus_connection_send(sd->dbus_menu->bus, msg, NULL, NULL, -1);
922 edbus_message_unref(msg);
923 sd->dbus_menu->xid = 0; 921 sd->dbus_menu->xid = 0;
924} 922}
925 923
diff --git a/src/lib/elm_sys_notify.c b/src/lib/elm_sys_notify.c
index ae0693c50..ba18ee079 100644
--- a/src/lib/elm_sys_notify.c
+++ b/src/lib/elm_sys_notify.c
@@ -196,8 +196,6 @@ elm_sys_notify_send(unsigned int replaces_id, const char *icon,
196 edbus_message_iter_arguments_append(iter, "i", timeout); 196 edbus_message_iter_arguments_append(iter, "i", timeout);
197 197
198 edbus_proxy_send(_elm_sysnotif_proxy, msg, _notify_cb, data, -1); 198 edbus_proxy_send(_elm_sysnotif_proxy, msg, _notify_cb, data, -1);
199
200 edbus_message_unref(msg);
201 free(desk_free); 199 free(desk_free);
202 free(body_free); 200 free(body_free);
203 return; 201 return;