Change-Id: I5d9f6a7facf0213fdbfece5f560097e0f2e89231
Signed-off-by: Patryk Kaczmarek <patryk.k@samsung.com>
component = atspi_accessible_get_component_iface(obj);
extent = atspi_component_get_extents(component, ATSPI_COORD_TYPE_SCREEN, NULL);
- if (extent->width <= 0 || extent->height <= 0) ret = EINA_FALSE;
-
+ if (extent->width <= 0 || extent->height <= 0) {
+ g_free(extent);
+ return EINA_FALSE;
+ }
g_free(extent);
- if (!ret)
- return ret;
-
ss = atspi_accessible_get_state_set(obj);
if (ss) {
if (_object_is_item(obj)) {