test_access.c: free memory in a proper place.

This fixes coverity CID 1046528 Resource leak (RESOURCE_LEAK).
This commit is contained in:
Daniel Juyung Seo 2013-08-11 15:51:29 +09:00
parent f23f7a9037
commit 471b01c360
1 changed files with 2 additions and 1 deletions

View File

@ -318,9 +318,10 @@ _key_down_cb(void *data, int type __UNUSED__, void *ei)
{
a->highlight_cycle = EINA_TRUE;
elm_access_action(data, ELM_ACCESS_ACTION_HIGHLIGHT_NEXT, a);
free(a);
}
}
free(a);
return ECORE_CALLBACK_PASS_ON;
}