summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2015-06-29 08:28:57 +0200
committerLukasz Stanislawski <l.stanislaws@samsung.com>2015-06-29 09:15:54 +0200
commit4359e3ed8d63ca9396659fecf33580e156914c65 (patch)
tree2a8d36c171b394437e063ba522a4a0a89e4a0e8a
parent64094fc28cd216f41509bd6cd92369b9962ced16 (diff)
downloadelementary-4359e3ed8d63ca9396659fecf33580e156914c65.tar.gz
atspi: unref fix
Change-Id: I94eea416b7500f4d1bfea75a5cff1a4033f4f593
-rw-r--r--src/lib/elm_atspi_bridge.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/elm_atspi_bridge.c b/src/lib/elm_atspi_bridge.c
index 951e1e489..00bca9c33 100644
--- a/src/lib/elm_atspi_bridge.c
+++ b/src/lib/elm_atspi_bridge.c
@@ -2413,13 +2413,15 @@ static Eldbus_Message *
_cache_get_items(const Eldbus_Service_Interface *iface, const Eldbus_Message *msg)
{
Eldbus_Message_Iter *iter, *iter_array;
- Eldbus_Message *ret = eldbus_message_method_return_new(msg);
- EINA_SAFETY_ON_NULL_RETURN_VAL(ret, NULL);
+ Eldbus_Message *ret;
Eo *bridge = eldbus_service_object_data_get(iface, ELM_ATSPI_BRIDGE_CLASS_NAME);
if (!bridge) return NULL;
ELM_ATSPI_BRIDGE_DATA_GET_OR_RETURN_VAL(bridge, pd, NULL);
+ ret = eldbus_message_method_return_new(msg);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(ret, NULL);
+
iter = eldbus_message_iter_get(ret);
iter_array = eldbus_message_iter_container_new(iter, 'a', CACHE_ITEM_SIGNATURE);
EINA_SAFETY_ON_NULL_GOTO(iter_array, fail);