forked from enlightenment/efl
test_access.c: free memory in a proper place.
This fixes coverity CID 1046528 Resource leak (RESOURCE_LEAK).
This commit is contained in:
parent
f23f7a9037
commit
471b01c360
|
@ -318,9 +318,10 @@ _key_down_cb(void *data, int type __UNUSED__, void *ei)
|
||||||
{
|
{
|
||||||
a->highlight_cycle = EINA_TRUE;
|
a->highlight_cycle = EINA_TRUE;
|
||||||
elm_access_action(data, ELM_ACCESS_ACTION_HIGHLIGHT_NEXT, a);
|
elm_access_action(data, ELM_ACCESS_ACTION_HIGHLIGHT_NEXT, a);
|
||||||
free(a);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free(a);
|
||||||
|
|
||||||
return ECORE_CALLBACK_PASS_ON;
|
return ECORE_CALLBACK_PASS_ON;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue