evas_textblock_tests: do not free a text cursor here
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Mon, 23 Mar 2020 20:53:54 +0000 (21:53 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 26 Mar 2020 21:04:32 +0000 (06:04 +0900)
the cur_obj would have been always dead at this point, as the textblock
was freed. This now moved the textcursor object to a previous point.
However, we could also remove the explicit cursor deletion...

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D11596

src/tests/evas/evas_test_textblock.c

index 4de3477..79d69a6 100644 (file)
@@ -62,8 +62,8 @@ while (0)
 do \
 { \
    evas_textblock_cursor_free(cur); \
-   evas_object_del(tb); \
    efl_del(cur_obj); \
+   evas_object_del(tb); \
    evas_textblock_style_free(st); \
    evas_free(evas); \
 } \