summaryrefslogtreecommitdiff
path: root/src/lib/eldbus/eldbus_service.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2013-12-07 15:30:52 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2013-12-07 21:11:33 +0100
commitc5caea03e3b1fabeb53a771cfb03883df1bbfab7 (patch)
tree9d3893fe6fa56e3ecd9d6487a4f1a70cccec3f90 /src/lib/eldbus/eldbus_service.c
parentf950e7990ffa38e3af8916b1e6a10cf392b9fc33 (diff)
eldbus: on error unref msg
This is done on all other errors, EINA_SAFETY macros ain't no silver bullet. Fixes CID 1039177
Diffstat (limited to 'src/lib/eldbus/eldbus_service.c')
-rw-r--r--src/lib/eldbus/eldbus_service.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/eldbus/eldbus_service.c b/src/lib/eldbus/eldbus_service.c
index 4cd8a482e8..693cdf3361 100644
--- a/src/lib/eldbus/eldbus_service.c
+++ b/src/lib/eldbus/eldbus_service.c
@@ -1026,8 +1026,12 @@ _idler_propschanged(void *data)
1026 if (!getter || prop->is_invalidate) 1026 if (!getter || prop->is_invalidate)
1027 continue; 1027 continue;
1028 1028
1029 EINA_SAFETY_ON_FALSE_GOTO( 1029 if (!eldbus_message_iter_arguments_append(dict, "{sv}", &entry))
1030 eldbus_message_iter_arguments_append(dict, "{sv}", &entry), error); 1030 {
1031 eldbus_message_unref(msg);
1032 goto error;
1033 }
1034
1031 1035
1032 eldbus_message_iter_basic_append(entry, 's', prop->property->name); 1036 eldbus_message_iter_basic_append(entry, 's', prop->property->name);
1033 var = eldbus_message_iter_container_new(entry, 'v', 1037 var = eldbus_message_iter_container_new(entry, 'v',