eina_test_tiler: Fix resource leak

Summary:
Coverity reports that reassigning 't' here leaks the storage that t
points to, so free the previous eina_tiler before reassigning the
variable.

Fixes CID1401068

@fix

Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8762
This commit is contained in:
Christopher Michael 2019-05-02 14:11:12 +02:00 committed by Xavi Artigas
parent c3c9fed7d9
commit ea56b2aa33
1 changed files with 0 additions and 4 deletions

View File

@ -245,12 +245,8 @@ EFL_START_TEST(eina_test_tiler_calculation)
t2 = eina_tiler_new(500, 500);
fail_if(!t2);
t = eina_tiler_new(500, 500);
fail_if(!t);
eina_tiler_tile_size_set(t1, 1, 1);
eina_tiler_tile_size_set(t2, 1, 1);
eina_tiler_tile_size_set(t, 1, 1);
EINA_RECTANGLE_SET(&r1, 0, 0, 500, 500);
eina_tiler_rect_add(t1, &r1);