forked from enlightenment/efl
evas: Fix CID1293000 (resource leak)
Summary: This fixes a resource leak of eina_array in eng_ector_renderer_draw which would return without freeing an allocated array. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
70bbfb4b93
commit
3b4902e17e
|
@ -3563,7 +3563,10 @@ eng_ector_renderer_draw(void *data EINA_UNUSED, void *context, void *surface, Ec
|
|||
|
||||
if (eina_array_count(c) == 0 &&
|
||||
eina_array_count(clips) > 0)
|
||||
return ;
|
||||
{
|
||||
eina_array_free(c);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (eina_array_count(c) == 0)
|
||||
|
@ -3584,7 +3587,7 @@ eng_ector_renderer_draw(void *data EINA_UNUSED, void *context, void *surface, Ec
|
|||
if (!ne)
|
||||
{
|
||||
_draw_thread_ector_cleanup(&ector);
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
memcpy(ne, &ector, sizeof (Evas_Thread_Command_Ector));
|
||||
|
|
Loading…
Reference in New Issue